Dominique Leuenberger 2020-06-04 15:50:02 +00:00 committed by Git OBS Bridge
commit 39e06875b2
2 changed files with 10 additions and 1 deletions

View File

@ -116,7 +116,7 @@ syn match sdError /^.*$/ contains=sdComment "highlight all non-valid lines as er
" TODO: make a separate pattern for variable definitions, then mark sdGlob as contained
syn match sdGlob /\v\?|\*|\{.*,.*\}|[[^\]]\+\]|\@\{[a-zA-Z][a-zA-Z0-9_]*\}/
syn match sdAlias /\v^alias\s+(\/|\@\{\S*\})\S*\s+-\>\s+(\/|\@\{\S*\})\S*\s*,(\s*$|(\s*#.*$)\@=)/ contains=sdGlob,sdComment
syn match sdAlias /\v^\s*alias\s+(\/|\@\{\S*\})\S*\s+-\>\s+(\/|\@\{\S*\})\S*\s*,(\s*$|(\s*#.*$)\@=)/ contains=sdGlob,sdComment
" syn match sdComment /#.*/
@ -189,6 +189,8 @@ syn match sdComment /\s*#.*$/
" NOTE: Comment highlighting still works without contains=sdComment.
syn match sdInclude /\s*#include\s<\S*>/ " TODO: doesn't check until $
syn match sdInclude /\s*include\s<\S*>/ " TODO: doesn't check until $
syn match sdInclude /\s*#include\sif\sexists\s<\S*>/ " TODO: doesn't check until $
syn match sdInclude /\s*include\sif\sexists\s<\S*>/ " TODO: doesn't check until $
" basic profile block...
" \s+ does not work in end=, therefore using \s\s*

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu May 21 15:16:53 UTC 2020 - Christian Boltz <suse-beta@cboltz.de>
- apparmor.vim: update from latest AppArmor 2.13 branch:
- allow alias rules with leading whitespace
- allow 'include if exists' rules
-------------------------------------------------------------------
Thu May 14 15:20:08 UTC 2020 - Ludwig Nussel <lnussel@suse.de>