diff options
author | 2021-05-29 11:28:42 +0200 | |
---|---|---|
committer | 2021-05-29 12:53:38 +0200 | |
commit | 7fee9c550ff5cb3f405d871eb12ce0d17bb7b171 (patch) | |
tree | fbdbf16ffa48762f0483b301e7230c507aa271ff /contrib/vim | |
parent | vim: update syscall groups (diff) | |
download | firejail-7fee9c550ff5cb3f405d871eb12ce0d17bb7b171.tar.gz firejail-7fee9c550ff5cb3f405d871eb12ce0d17bb7b171.tar.zst firejail-7fee9c550ff5cb3f405d871eb12ce0d17bb7b171.zip |
vim: update conditionals
Diffstat (limited to 'contrib/vim')
-rw-r--r-- | contrib/vim/syntax/firejail.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/vim/syntax/firejail.vim b/contrib/vim/syntax/firejail.vim index cf3c7c2d3..a41da76cc 100644 --- a/contrib/vim/syntax/firejail.vim +++ b/contrib/vim/syntax/firejail.vim | |||
@@ -69,7 +69,7 @@ syn match fjCommandNoCond /quiet$/ contained | |||
69 | 69 | ||
70 | " Conditionals grabbed from: src/firejail/profile.c | 70 | " Conditionals grabbed from: src/firejail/profile.c |
71 | " Generate list with: awk -- 'BEGIN {process=0;} /^Cond conditionals\[\] = \{$/ {process=1;} /\t*\{"[^"]+".*/ { if (process) {print gensub(/^\t*\{"([^"]+)".*$/, "\\1", 1);} } /^\t\{ NULL, NULL \}$/ {process=0;}' src/firejail/profile.c | sort -u | tr $'\n' '|' | 71 | " Generate list with: awk -- 'BEGIN {process=0;} /^Cond conditionals\[\] = \{$/ {process=1;} /\t*\{"[^"]+".*/ { if (process) {print gensub(/^\t*\{"([^"]+)".*$/, "\\1", 1);} } /^\t\{ NULL, NULL \}$/ {process=0;}' src/firejail/profile.c | sort -u | tr $'\n' '|' |
72 | syn match fjConditional /\v\?(BROWSER_ALLOW_DRM|BROWSER_DISABLE_U2F|HAS_APPIMAGE|HAS_NODBUS) ?:/ nextgroup=fjCommand skipwhite contained | 72 | syn match fjConditional /\v\?(BROWSER_ALLOW_DRM|BROWSER_DISABLE_U2F|HAS_APPIMAGE|HAS_NET|HAS_NODBUS|HAS_NOSOUND|HAS_X11) ?:/ nextgroup=fjCommand skipwhite contained |
73 | 73 | ||
74 | " A line is either a command, a conditional or a comment | 74 | " A line is either a command, a conditional or a comment |
75 | syn match fjStatement /^/ nextgroup=fjCommand,fjCommandNoCond,fjConditional,fjComment | 75 | syn match fjStatement /^/ nextgroup=fjCommand,fjCommandNoCond,fjConditional,fjComment |