From 51469caa0935293ea6096d8209bcf57b59b77dab Mon Sep 17 00:00:00 2001 From: Reiner Herrmann Date: Sat, 29 May 2021 11:16:10 +0200 Subject: vim: highlight seccomp-error-action --- contrib/vim/syntax/firejail.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contrib/vim/syntax/firejail.vim b/contrib/vim/syntax/firejail.vim index e1bd3d7a8..e0a9520a5 100644 --- a/contrib/vim/syntax/firejail.vim +++ b/contrib/vim/syntax/firejail.vim @@ -33,6 +33,7 @@ syn match fjSyscallErrno /\v(:(E2BIG|EACCES|EADDRINUSE|EADDRNOTAVAIL|EADV|EAFNOS syn match fjSyscallList /,/ nextgroup=fjSyscall contained syn keyword fjX11Sandbox none xephyr xorg xpra xvfb contained +syn keyword fjSeccompAction kill log ERRNO contained syn match fjEnvVar "[A-Za-z0-9_]\+=" contained syn match fjRmenvVar "[A-Za-z0-9_]\+" contained @@ -61,6 +62,7 @@ syn match fjCommand /rmenv / nextgroup=fjRmenvVar skipwhite contained syn match fjCommand /shell / nextgroup=fjNone skipwhite contained syn match fjCommand /net / nextgroup=fjNone,fjLo skipwhite contained syn match fjCommand /ip / nextgroup=fjNone skipwhite contained +syn match fjCommand /seccomp-error-action / nextgroup=fjSeccompAction skipwhite contained " Commands that can't be inside a ?CONDITIONAL: statement syn match fjCommandNoCond /include / skipwhite contained syn match fjCommandNoCond /quiet$/ contained @@ -88,6 +90,7 @@ hi def link fjRmenvVar Type hi def link fjAll Type hi def link fjNone Type hi def link fjLo Type +hi def link fjSeccompAction Constant let b:current_syntax = "firejail" -- cgit v1.2.3-54-g00ecf