From e8c33074346eeee3b79dd75e106152af45424d380a15ac64ef4ef3278fd14f23 Mon Sep 17 00:00:00 2001 From: Dirk Stoecker Date: Fri, 13 Aug 2021 18:30:25 +0000 Subject: [PATCH] Accepting request 911395 from home:cboltz:branches:editors - Update apparmor.vim (taken from AppArmor 3.0.3) * Add syntax highlighting for abi rules Please accept before doing the next vim update ;-) OBS-URL: https://build.opensuse.org/request/show/911395 OBS-URL: https://build.opensuse.org/package/show/editors/vim?expand=0&rev=675 --- apparmor.vim | 2 ++ vim.changes | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/apparmor.vim b/apparmor.vim index 9007476..3e2c00e 100644 --- a/apparmor.vim +++ b/apparmor.vim @@ -192,6 +192,8 @@ 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 $ +syn match sdInclude /\s*abi\s<\S*>\s*,/ contains=sdComment " TODO: doesn't check until $ + " basic profile block... " \s+ does not work in end=, therefore using \s\s* syn region Normal start=/\v^(profile\s+)?\S+\s+((flags\s*\=\s*)?\(\s*(complain|audit|attach_disconnected|no_attach_disconnected|chroot_attach|chroot_no_attach|chroot_relative|namespace_relative|mediate_deleted|delegate_deleted)(\s*,\s*(complain|audit|attach_disconnected|no_attach_disconnected|chroot_attach|chroot_no_attach|chroot_relative|namespace_relative|mediate_deleted|delegate_deleted))*\s*\)\s+)=\{/ matchgroup=sdProfileEnd end=/^}\s*$/ contains=sdProfileName,Hat,@sdEntry,sdComment,sdError,sdInclude diff --git a/vim.changes b/vim.changes index 85b2539..7927344 100644 --- a/vim.changes +++ b/vim.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Aug 11 09:03:06 UTC 2021 - Christian Boltz + +- Update apparmor.vim (taken from AppArmor 3.0.3) + * Add syntax highlighting for abi rules + ------------------------------------------------------------------- Mon Aug 9 10:24:10 UTC 2021 - Ondřej Súkup