diff options
author | 2021-05-29 11:16:10 +0200 | |
---|---|---|
committer | 2021-05-29 12:53:27 +0200 | |
commit | 51469caa0935293ea6096d8209bcf57b59b77dab (patch) | |
tree | 84e9a561f6c7a61b0ef803c7b56921228609a0cf /contrib/vim/syntax | |
parent | vim: update list of syscalls (diff) | |
download | firejail-51469caa0935293ea6096d8209bcf57b59b77dab.tar.gz firejail-51469caa0935293ea6096d8209bcf57b59b77dab.tar.zst firejail-51469caa0935293ea6096d8209bcf57b59b77dab.zip |
vim: highlight seccomp-error-action
Diffstat (limited to 'contrib/vim/syntax')
-rw-r--r-- | contrib/vim/syntax/firejail.vim | 3 |
1 files changed, 3 insertions, 0 deletions
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 | |||
33 | syn match fjSyscallList /,/ nextgroup=fjSyscall contained | 33 | syn match fjSyscallList /,/ nextgroup=fjSyscall contained |
34 | 34 | ||
35 | syn keyword fjX11Sandbox none xephyr xorg xpra xvfb contained | 35 | syn keyword fjX11Sandbox none xephyr xorg xpra xvfb contained |
36 | syn keyword fjSeccompAction kill log ERRNO contained | ||
36 | 37 | ||
37 | syn match fjEnvVar "[A-Za-z0-9_]\+=" contained | 38 | syn match fjEnvVar "[A-Za-z0-9_]\+=" contained |
38 | syn match fjRmenvVar "[A-Za-z0-9_]\+" contained | 39 | syn match fjRmenvVar "[A-Za-z0-9_]\+" contained |
@@ -61,6 +62,7 @@ syn match fjCommand /rmenv / nextgroup=fjRmenvVar skipwhite contained | |||
61 | syn match fjCommand /shell / nextgroup=fjNone skipwhite contained | 62 | syn match fjCommand /shell / nextgroup=fjNone skipwhite contained |
62 | syn match fjCommand /net / nextgroup=fjNone,fjLo skipwhite contained | 63 | syn match fjCommand /net / nextgroup=fjNone,fjLo skipwhite contained |
63 | syn match fjCommand /ip / nextgroup=fjNone skipwhite contained | 64 | syn match fjCommand /ip / nextgroup=fjNone skipwhite contained |
65 | syn match fjCommand /seccomp-error-action / nextgroup=fjSeccompAction skipwhite contained | ||
64 | " Commands that can't be inside a ?CONDITIONAL: statement | 66 | " Commands that can't be inside a ?CONDITIONAL: statement |
65 | syn match fjCommandNoCond /include / skipwhite contained | 67 | syn match fjCommandNoCond /include / skipwhite contained |
66 | syn match fjCommandNoCond /quiet$/ contained | 68 | syn match fjCommandNoCond /quiet$/ contained |
@@ -88,6 +90,7 @@ hi def link fjRmenvVar Type | |||
88 | hi def link fjAll Type | 90 | hi def link fjAll Type |
89 | hi def link fjNone Type | 91 | hi def link fjNone Type |
90 | hi def link fjLo Type | 92 | hi def link fjLo Type |
93 | hi def link fjSeccompAction Constant | ||
91 | 94 | ||
92 | 95 | ||
93 | let b:current_syntax = "firejail" | 96 | let b:current_syntax = "firejail" |