Accepting request 808013 from home:cboltz:branches:editors

- apparmor.vim: update from latest AppArmor 2.13 branch:
  - allow alias rules with leading whitespace
  - allow 'include if exists' rules

OBS-URL: https://build.opensuse.org/request/show/808013
OBS-URL: https://build.opensuse.org/package/show/editors/vim?expand=0&rev=604
This commit is contained in:
Ismail Dönmez 2020-05-21 15:19:40 +00:00 committed by Git OBS Bridge
parent b58d38f287
commit aa45c45e7f
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>