Hello,

$subject says it all ;-)


=== modified file 'utils/vim/apparmor.vim.in'
--- utils/vim/apparmor.vim.in   2014-10-14 19:36:41 +0000
+++ utils/vim/apparmor.vim.in   2014-10-16 19:01:34 +0000
@@ -167,7 +167,7 @@
 syn match sdEntryW 
/\v^\s+@@auditdenyowner@@link\s+(subset\s+)?@@FILENAME@@\s+-\>\s+@@FILENAME@@@@EOL@@/
 contains=sdGlob,sdComment
 
 
-syn match sdExtHat  /\v^\s+(\^|profile\s+)\S+@@EOL@@/ contains=sdComment " hat 
without {...}
+syn match sdExtHat  /\v^\s+(\^|hat\s+|profile\s+)\S+@@EOL@@/ 
contains=sdComment " hat without {...}
 
 
 
@@ -176,7 +176,7 @@
 syn match sdProfileStart /{/ contained 
 syn match sdProfileEnd /^}\s*(#.*)?$/ contained " TODO: syn region does not 
(yet?) allow usage of comment in end=
                                                 " TODO: Removing the $ mark 
from end= will allow non-comments also :-(
-syn match sdHatName /\v^\s+(\^|profile\s+)\S+\s+@@flags@@=\{/ 
contains=sdProfileStart,sdFlags,sdComment
+syn match sdHatName /\v^\s+(\^|hat\s+|profile\s+)\S+\s+@@flags@@=\{/ 
contains=sdProfileStart,sdFlags,sdComment
 syn match sdHatStart /{/ contained 
 syn match sdHatEnd /}/ contained " TODO: allow comments + [same as for syn 
match sdProfileEnd]
 syn match sdFlags /\v@@flags@@/ contained contains=sdFlagKey
@@ -190,7 +190,7 @@
 " basic profile block...
 " \s+ does not work in end=, therefore using \s\s*
 syn region Normal start=/\v^(profile\s+)?\S+\s+@@flags@@=\{/ 
matchgroup=sdProfileEnd end=/^}\s*$/ 
contains=sdProfileName,Hat,@sdEntry,sdComment,sdError,sdInclude
-syn region Hat start=/\v^\s+(\^|profile\s+)\S+\s+@@flags@@=\{/ 
matchgroup=sdHatEnd end=/^\s\s*}\s*$/ 
contains=sdHatName,@sdEntry,sdComment,sdError,sdInclude
+syn region Hat start=/\v^\s+(\^|hat\s+|profile\s+)\S+\s+@@flags@@=\{/ 
matchgroup=sdHatEnd end=/^\s\s*}\s*$/ 
contains=sdHatName,@sdEntry,sdComment,sdError,sdInclude
 
 " file permissions
 




Regards,

Christian Boltz
-- 
Why don't you go troll the *buntu fora for a while?
[David Haller in opensuse-factory]


-- 
AppArmor mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/apparmor

Reply via email to