annotate runtime/syntax/sudoers.vim @ 28154:ae975c8d5438 v8.2.4601

patch 8.2.4601: Vim9: not enough test coverage for executing :def function Commit: https://github.com/vim/vim/commit/efd73ae5d2a533670f562b6df5be2ffeb091185d Author: Bram Moolenaar <Bram@vim.org> Date: Sun Mar 20 18:51:00 2022 +0000 patch 8.2.4601: Vim9: not enough test coverage for executing :def function Problem: Vim9: not enough test coverage for executing :def function. Solution: Add a few more tests.
author Bram Moolenaar <Bram@vim.org>
date Sun, 20 Mar 2022 20:00:03 +0100
parents 4ab4ef0c48b1
children e5c7d5b6c82c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
1 " Vim syntax file
11062
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 2709
diff changeset
2 " Language: sudoers(5) configuration files
24278
4ab4ef0c48b1 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14637
diff changeset
3 " Maintainer: Eisuke Kawashima ( e.kawaschima+vim AT gmail.com )
11062
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 2709
diff changeset
4 " Previous Maintainer: Nikolai Weibull <now@bitwi.se>
24278
4ab4ef0c48b1 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14637
diff changeset
5 " Latest Revision: 2021 Mar 15
14372
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
6 " Recent Changes: Support for #include and #includedir.
14637
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
7 " Added many new options (Samuel D. Leslie)
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
8
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
9 if exists("b:current_syntax")
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
10 finish
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
11 endif
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
12
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
13 let s:cpo_save = &cpo
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
14 set cpo&vim
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
15
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
16 " TODO: instead of 'skipnl', we would like to match a specific group that would
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
17 " match \\$ and then continue with the nextgroup, actually, the skipnl doesn't
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
18 " work...
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
19 " TODO: treat 'ALL' like a special (yay, a bundle of new rules!!!)
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
20
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
21 syn match sudoersUserSpec '^' nextgroup=@sudoersUserInSpec skipwhite
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
22
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
23 syn match sudoersSpecEquals contained '=' nextgroup=@sudoersCmndSpecList skipwhite
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
24
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
25 syn cluster sudoersCmndSpecList contains=sudoersUserRunasBegin,sudoersPASSWD,@sudoersCmndInSpec
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
26
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
27 syn keyword sudoersTodo contained TODO FIXME XXX NOTE
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
28
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 375
diff changeset
29 syn region sudoersComment display oneline start='#' end='$' contains=sudoersTodo
24278
4ab4ef0c48b1 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14637
diff changeset
30 syn region sudoersInclude display oneline start='[#@]\%(include\|includedir\)\>' end='$'
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
31
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
32 syn keyword sudoersAlias User_Alias Runas_Alias nextgroup=sudoersUserAlias skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
33 syn keyword sudoersAlias Host_Alias nextgroup=sudoersHostAlias skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
34 syn keyword sudoersAlias Cmnd_Alias nextgroup=sudoersCmndAlias skipwhite skipnl
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
35
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
36 syn match sudoersUserAlias contained '\<\u[A-Z0-9_]*\>' nextgroup=sudoersUserAliasEquals skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
37 syn match sudoersUserNameInList contained '\<\l\+\>' nextgroup=@sudoersUserList skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
38 syn match sudoersUIDInList contained '#\d\+\>' nextgroup=@sudoersUserList skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
39 syn match sudoersGroupInList contained '%\l\+\>' nextgroup=@sudoersUserList skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
40 syn match sudoersUserNetgroupInList contained '+\l\+\>' nextgroup=@sudoersUserList skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
41 syn match sudoersUserAliasInList contained '\<\u[A-Z0-9_]*\>' nextgroup=@sudoersUserList skipwhite skipnl
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
42
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
43 syn match sudoersUserName contained '\<\l\+\>' nextgroup=@sudoersParameter skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
44 syn match sudoersUID contained '#\d\+\>' nextgroup=@sudoersParameter skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
45 syn match sudoersGroup contained '%\l\+\>' nextgroup=@sudoersParameter skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
46 syn match sudoersUserNetgroup contained '+\l\+\>' nextgroup=@sudoersParameter skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
47 syn match sudoersUserAliasRef contained '\<\u[A-Z0-9_]*\>' nextgroup=@sudoersParameter skipwhite skipnl
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
48
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
49 syn match sudoersUserNameInSpec contained '\<\l\+\>' nextgroup=@sudoersUserSpec skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
50 syn match sudoersUIDInSpec contained '#\d\+\>' nextgroup=@sudoersUserSpec skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
51 syn match sudoersGroupInSpec contained '%\l\+\>' nextgroup=@sudoersUserSpec skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
52 syn match sudoersUserNetgroupInSpec contained '+\l\+\>' nextgroup=@sudoersUserSpec skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
53 syn match sudoersUserAliasInSpec contained '\<\u[A-Z0-9_]*\>' nextgroup=@sudoersUserSpec skipwhite skipnl
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
54
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
55 syn match sudoersUserNameInRunas contained '\<\l\+\>' nextgroup=@sudoersUserRunas skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
56 syn match sudoersUIDInRunas contained '#\d\+\>' nextgroup=@sudoersUserRunas skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
57 syn match sudoersGroupInRunas contained '%\l\+\>' nextgroup=@sudoersUserRunas skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
58 syn match sudoersUserNetgroupInRunas contained '+\l\+\>' nextgroup=@sudoersUserRunas skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
59 syn match sudoersUserAliasInRunas contained '\<\u[A-Z0-9_]*\>' nextgroup=@sudoersUserRunas skipwhite skipnl
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
60
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
61 syn match sudoersHostAlias contained '\<\u[A-Z0-9_]*\>' nextgroup=sudoersHostAliasEquals skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
62 syn match sudoersHostNameInList contained '\<\l\+\>' nextgroup=@sudoersHostList skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
63 syn match sudoersIPAddrInList contained '\%(\d\{1,3}\.\)\{3}\d\{1,3}' nextgroup=@sudoersHostList skipwhite skipnl
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
64 syn match sudoersNetworkInList contained '\%(\d\{1,3}\.\)\{3}\d\{1,3}\%(/\%(\%(\d\{1,3}\.\)\{3}\d\{1,3}\|\d\+\)\)\=' nextgroup=@sudoersHostList skipwhite skipnl
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
65 syn match sudoersHostNetgroupInList contained '+\l\+\>' nextgroup=@sudoersHostList skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
66 syn match sudoersHostAliasInList contained '\<\u[A-Z0-9_]*\>' nextgroup=@sudoersHostList skipwhite skipnl
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
67
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
68 syn match sudoersHostName contained '\<\l\+\>' nextgroup=@sudoersParameter skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
69 syn match sudoersIPAddr contained '\%(\d\{1,3}\.\)\{3}\d\{1,3}' nextgroup=@sudoersParameter skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
70 syn match sudoersNetwork contained '\%(\d\{1,3}\.\)\{3}\d\{1,3}\%(/\%(\%(\d\{1,3}\.\)\{3}\d\{1,3}\|\d\+\)\)\=' nextgroup=@sudoersParameter skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
71 syn match sudoersHostNetgroup contained '+\l\+\>' nextgroup=@sudoersParameter skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
72 syn match sudoersHostAliasRef contained '\<\u[A-Z0-9_]*\>' nextgroup=@sudoersParameter skipwhite skipnl
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
73
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
74 syn match sudoersHostNameInSpec contained '\<\l\+\>' nextgroup=@sudoersHostSpec skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
75 syn match sudoersIPAddrInSpec contained '\%(\d\{1,3}\.\)\{3}\d\{1,3}' nextgroup=@sudoersHostSpec skipwhite skipnl
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
76 syn match sudoersNetworkInSpec contained '\%(\d\{1,3}\.\)\{3}\d\{1,3}\%(/\%(\%(\d\{1,3}\.\)\{3}\d\{1,3}\|\d\+\)\)\=' nextgroup=@sudoersHostSpec skipwhite skipnl
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
77 syn match sudoersHostNetgroupInSpec contained '+\l\+\>' nextgroup=@sudoersHostSpec skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
78 syn match sudoersHostAliasInSpec contained '\<\u[A-Z0-9_]*\>' nextgroup=@sudoersHostSpec skipwhite skipnl
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
79
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
80 syn match sudoersCmndAlias contained '\<\u[A-Z0-9_]*\>' nextgroup=sudoersCmndAliasEquals skipwhite skipnl
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
81 syn match sudoersCmndNameInList contained '[^[:space:],:=\\]\+\%(\\[[:space:],:=\\][^[:space:],:=\\]*\)*' nextgroup=@sudoersCmndList,sudoersCommandEmpty,sudoersCommandArgs skipwhite
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
82 syn match sudoersCmndAliasInList contained '\<\u[A-Z0-9_]*\>' nextgroup=@sudoersCmndList skipwhite skipnl
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
83
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
84 syn match sudoersCmndNameInSpec contained '[^[:space:],:=\\]\+\%(\\[[:space:],:=\\][^[:space:],:=\\]*\)*' nextgroup=@sudoersCmndSpec,sudoersCommandEmptyInSpec,sudoersCommandArgsInSpec skipwhite
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
85 syn match sudoersCmndAliasInSpec contained '\<\u[A-Z0-9_]*\>' nextgroup=@sudoersCmndSpec skipwhite skipnl
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
86
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
87 syn match sudoersUserAliasEquals contained '=' nextgroup=@sudoersUserInList skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
88 syn match sudoersUserListComma contained ',' nextgroup=@sudoersUserInList skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
89 syn match sudoersUserListColon contained ':' nextgroup=sudoersUserAlias skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
90 syn cluster sudoersUserList contains=sudoersUserListComma,sudoersUserListColon
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
91
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
92 syn match sudoersUserSpecComma contained ',' nextgroup=@sudoersUserInSpec skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
93 syn cluster sudoersUserSpec contains=sudoersUserSpecComma,@sudoersHostInSpec
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
94
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
95 syn match sudoersUserRunasBegin contained '(' nextgroup=@sudoersUserInRunas skipwhite skipnl
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
96 syn match sudoersUserRunasComma contained ',' nextgroup=@sudoersUserInRunas skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
97 syn match sudoersUserRunasEnd contained ')' nextgroup=sudoersPASSWD,@sudoersCmndInSpec skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
98 syn cluster sudoersUserRunas contains=sudoersUserRunasComma,@sudoersUserInRunas,sudoersUserRunasEnd
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
99
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
100
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
101 syn match sudoersHostAliasEquals contained '=' nextgroup=@sudoersHostInList skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
102 syn match sudoersHostListComma contained ',' nextgroup=@sudoersHostInList skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
103 syn match sudoersHostListColon contained ':' nextgroup=sudoersHostAlias skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
104 syn cluster sudoersHostList contains=sudoersHostListComma,sudoersHostListColon
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
105
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
106 syn match sudoersHostSpecComma contained ',' nextgroup=@sudoersHostInSpec skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
107 syn cluster sudoersHostSpec contains=sudoersHostSpecComma,sudoersSpecEquals
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
108
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
109
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
110 syn match sudoersCmndAliasEquals contained '=' nextgroup=@sudoersCmndInList skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
111 syn match sudoersCmndListComma contained ',' nextgroup=@sudoersCmndInList skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
112 syn match sudoersCmndListColon contained ':' nextgroup=sudoersCmndAlias skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
113 syn cluster sudoersCmndList contains=sudoersCmndListComma,sudoersCmndListColon
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
114
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
115 syn match sudoersCmndSpecComma contained ',' nextgroup=@sudoersCmndSpecList skipwhite skipnl
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
116 syn match sudoersCmndSpecColon contained ':' nextgroup=@sudoersUserInSpec skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
117 syn cluster sudoersCmndSpec contains=sudoersCmndSpecComma,sudoersCmndSpecColon
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
118
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
119 syn cluster sudoersUserInList contains=sudoersUserNegationInList,sudoersUserNameInList,sudoersUIDInList,sudoersGroupInList,sudoersUserNetgroupInList,sudoersUserAliasInList
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
120 syn cluster sudoersHostInList contains=sudoersHostNegationInList,sudoersHostNameInList,sudoersIPAddrInList,sudoersNetworkInList,sudoersHostNetgroupInList,sudoersHostAliasInList
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
121 syn cluster sudoersCmndInList contains=sudoersCmndNegationInList,sudoersCmndNameInList,sudoersCmndAliasInList
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
122
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
123 syn cluster sudoersUser contains=sudoersUserNegation,sudoersUserName,sudoersUID,sudoersGroup,sudoersUserNetgroup,sudoersUserAliasRef
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
124 syn cluster sudoersHost contains=sudoersHostNegation,sudoersHostName,sudoersIPAddr,sudoersNetwork,sudoersHostNetgroup,sudoersHostAliasRef
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
125
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
126 syn cluster sudoersUserInSpec contains=sudoersUserNegationInSpec,sudoersUserNameInSpec,sudoersUIDInSpec,sudoersGroupInSpec,sudoersUserNetgroupInSpec,sudoersUserAliasInSpec
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
127 syn cluster sudoersHostInSpec contains=sudoersHostNegationInSpec,sudoersHostNameInSpec,sudoersIPAddrInSpec,sudoersNetworkInSpec,sudoersHostNetgroupInSpec,sudoersHostAliasInSpec
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
128 syn cluster sudoersUserInRunas contains=sudoersUserNegationInRunas,sudoersUserNameInRunas,sudoersUIDInRunas,sudoersGroupInRunas,sudoersUserNetgroupInRunas,sudoersUserAliasInRunas
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
129 syn cluster sudoersCmndInSpec contains=sudoersCmndNegationInSpec,sudoersCmndNameInSpec,sudoersCmndAliasInSpec
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
130
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
131 syn match sudoersUserNegationInList contained '!\+' nextgroup=@sudoersUserInList skipwhite skipnl
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
132 syn match sudoersHostNegationInList contained '!\+' nextgroup=@sudoersHostInList skipwhite skipnl
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
133 syn match sudoersCmndNegationInList contained '!\+' nextgroup=@sudoersCmndInList skipwhite skipnl
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
134
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
135 syn match sudoersUserNegation contained '!\+' nextgroup=@sudoersUser skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
136 syn match sudoersHostNegation contained '!\+' nextgroup=@sudoersHost skipwhite skipnl
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
137
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
138 syn match sudoersUserNegationInSpec contained '!\+' nextgroup=@sudoersUserInSpec skipwhite skipnl
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
139 syn match sudoersHostNegationInSpec contained '!\+' nextgroup=@sudoersHostInSpec skipwhite skipnl
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
140 syn match sudoersUserNegationInRunas contained '!\+' nextgroup=@sudoersUserInRunas skipwhite skipnl
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
141 syn match sudoersCmndNegationInSpec contained '!\+' nextgroup=@sudoersCmndInSpec skipwhite skipnl
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
142
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
143 syn match sudoersCommandArgs contained '[^[:space:],:=\\]\+\%(\\[[:space:],:=\\][^[:space:],:=\\]*\)*' nextgroup=sudoersCommandArgs,@sudoersCmndList skipwhite
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
144 syn match sudoersCommandEmpty contained '""' nextgroup=@sudoersCmndList skipwhite skipnl
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
145
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
146 syn match sudoersCommandArgsInSpec contained '[^[:space:],:=\\]\+\%(\\[[:space:],:=\\][^[:space:],:=\\]*\)*' nextgroup=sudoersCommandArgsInSpec,@sudoersCmndSpec skipwhite
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
147 syn match sudoersCommandEmptyInSpec contained '""' nextgroup=@sudoersCmndSpec skipwhite skipnl
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
148
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
149 syn keyword sudoersDefaultEntry Defaults nextgroup=sudoersDefaultTypeAt,sudoersDefaultTypeColon,sudoersDefaultTypeGreaterThan,@sudoersParameter skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
150 syn match sudoersDefaultTypeAt contained '@' nextgroup=@sudoersHost skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
151 syn match sudoersDefaultTypeColon contained ':' nextgroup=@sudoersUser skipwhite skipnl
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
152 syn match sudoersDefaultTypeGreaterThan contained '>' nextgroup=@sudoersUser skipwhite skipnl
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
153
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
154 " TODO: could also deal with special characters here
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
155 syn match sudoersBooleanParameter contained '!' nextgroup=sudoersBooleanParameter skipwhite skipnl
2709
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
156 syn keyword sudoersBooleanParameter contained skipwhite skipnl
14637
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
157 \ always_query_group_plugin
2709
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
158 \ always_set_home
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
159 \ authenticate
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
160 \ closefrom_override
14637
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
161 \ compress_io
2709
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
162 \ env_editor
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
163 \ env_reset
14637
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
164 \ exec_background
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
165 \ fast_glob
2709
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
166 \ fqdn
14637
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
167 \ ignore_audit_errors
2709
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
168 \ ignore_dot
14637
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
169 \ ignore_iolog_errors
2709
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
170 \ ignore_local_sudoers
14637
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
171 \ ignore_logfile_errors
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
172 \ ignore_unknown_defaults
2709
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
173 \ insults
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
174 \ log_host
14637
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
175 \ log_input
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
176 \ log_output
2709
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
177 \ log_year
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
178 \ long_otp_prompt
14637
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
179 \ mail_all_cmnds
2709
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
180 \ mail_always
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
181 \ mail_badpass
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
182 \ mail_no_host
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
183 \ mail_no_perms
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
184 \ mail_no_user
14637
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
185 \ match_group_by_gid
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
186 \ netgroup_tuple
2709
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
187 \ noexec
14637
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
188 \ pam_session
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
189 \ pam_setcred
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
190 \ passprompt_override
2709
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
191 \ path_info
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
192 \ preserve_groups
14637
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
193 \ pwfeedback
2709
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
194 \ requiretty
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
195 \ root_sudo
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
196 \ rootpw
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
197 \ runaspw
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
198 \ set_home
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
199 \ set_logname
14637
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
200 \ set_utmp
2709
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
201 \ setenv
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
202 \ shell_noargs
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
203 \ stay_setuid
14637
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
204 \ sudoedit_checkdir
24278
4ab4ef0c48b1 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14637
diff changeset
205 \ sudoedit_follow
14637
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
206 \ syslog_pid
2709
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
207 \ targetpw
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
208 \ tty_tickets
14637
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
209 \ umask_override
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
210 \ use_netgroups
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
211 \ use_pty
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
212 \ user_command_timeouts
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
213 \ utmp_runas
2709
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
214 \ visiblepw
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
215
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
216 syn keyword sudoersIntegerParameter contained
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
217 \ nextgroup=sudoersIntegerParameterEquals
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
218 \ skipwhite skipnl
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
219 \ closefrom
14637
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
220 \ command_timeout
2709
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
221 \ loglinelen
14637
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
222 \ maxseq
2709
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
223 \ passwd_timeout
14637
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
224 \ passwd_tries
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
225 \ syslog_maxlen
2709
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
226 \ timestamp_timeout
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
227 \ umask
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
228
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
229 syn keyword sudoersStringParameter contained
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
230 \ nextgroup=sudoersStringParameterEquals
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
231 \ skipwhite skipnl
14637
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
232 \ askpass
2709
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
233 \ badpass_message
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
234 \ editor
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
235 \ env_file
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
236 \ exempt_group
14637
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
237 \ fdexec
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
238 \ group_plugin
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
239 \ iolog_dir
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
240 \ iolog_file
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
241 \ iolog_flush
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
242 \ iolog_group
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
243 \ iolog_mode
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
244 \ iolog_user
2709
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
245 \ lecture
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
246 \ lecture_file
14637
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
247 \ lecture_status_dir
2709
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
248 \ listpw
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
249 \ logfile
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
250 \ mailerflags
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
251 \ mailerpath
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
252 \ mailfrom
14637
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
253 \ mailsub
2709
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
254 \ mailto
14637
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
255 \ noexec_file
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
256 \ pam_login_service
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
257 \ pam_service
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
258 \ passprompt
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
259 \ restricted_env_file
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
260 \ role
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
261 \ runas_default
2709
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
262 \ secure_path
14637
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
263 \ sudoers_locale
2709
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
264 \ syslog
14637
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
265 \ syslog_badpri
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
266 \ syslog_goodpri
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
267 \ timestamp_type
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
268 \ timestampdir
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
269 \ timestampowner
0ecb909e3249 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14372
diff changeset
270 \ type
2709
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
271 \ verifypw
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
272
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
273 syn keyword sudoersListParameter contained
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
274 \ nextgroup=sudoersListParameterEquals
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
275 \ skipwhite skipnl
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
276 \ env_check
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
277 \ env_delete
b01a37ab556b Runtime file updates.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
278 \ env_keep
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
279
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
280 syn match sudoersParameterListComma contained ',' nextgroup=@sudoersParameter skipwhite skipnl
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
281
1621
82b5078be2dd updated for version 7.2a
vimboss
parents: 839
diff changeset
282 syn cluster sudoersParameter contains=sudoersBooleanParameter,sudoersIntegerParameter,sudoersStringParameter,sudoersListParameter
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
283
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
284 syn match sudoersIntegerParameterEquals contained '[+-]\==' nextgroup=sudoersIntegerValue skipwhite skipnl
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
285 syn match sudoersStringParameterEquals contained '[+-]\==' nextgroup=sudoersStringValue skipwhite skipnl
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
286 syn match sudoersListParameterEquals contained '[+-]\==' nextgroup=sudoersListValue skipwhite skipnl
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
287
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
288 syn match sudoersIntegerValue contained '\d\+' nextgroup=sudoersParameterListComma skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
289 syn match sudoersStringValue contained '[^[:space:],:=\\]*\%(\\[[:space:],:=\\][^[:space:],:=\\]*\)*' nextgroup=sudoersParameterListComma skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
290 syn region sudoersStringValue contained start=+"+ skip=+\\"+ end=+"+ nextgroup=sudoersParameterListComma skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
291 syn match sudoersListValue contained '[^[:space:],:=\\]*\%(\\[[:space:],:=\\][^[:space:],:=\\]*\)*' nextgroup=sudoersParameterListComma skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
292 syn region sudoersListValue contained start=+"+ skip=+\\"+ end=+"+ nextgroup=sudoersParameterListComma skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
293
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
294 syn match sudoersPASSWD contained '\%(NO\)\=PASSWD:' nextgroup=@sudoersCmndInSpec skipwhite
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
295
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
296 hi def link sudoersSpecEquals Operator
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
297 hi def link sudoersTodo Todo
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
298 hi def link sudoersComment Comment
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
299 hi def link sudoersAlias Keyword
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
300 hi def link sudoersUserAlias Identifier
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
301 hi def link sudoersUserNameInList String
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
302 hi def link sudoersUIDInList Number
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
303 hi def link sudoersGroupInList PreProc
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
304 hi def link sudoersUserNetgroupInList PreProc
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
305 hi def link sudoersUserAliasInList PreProc
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
306 hi def link sudoersUserName String
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
307 hi def link sudoersUID Number
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
308 hi def link sudoersGroup PreProc
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
309 hi def link sudoersUserNetgroup PreProc
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
310 hi def link sudoersUserAliasRef PreProc
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
311 hi def link sudoersUserNameInSpec String
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
312 hi def link sudoersUIDInSpec Number
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
313 hi def link sudoersGroupInSpec PreProc
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
314 hi def link sudoersUserNetgroupInSpec PreProc
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
315 hi def link sudoersUserAliasInSpec PreProc
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
316 hi def link sudoersUserNameInRunas String
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
317 hi def link sudoersUIDInRunas Number
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
318 hi def link sudoersGroupInRunas PreProc
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
319 hi def link sudoersUserNetgroupInRunas PreProc
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
320 hi def link sudoersUserAliasInRunas PreProc
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
321 hi def link sudoersHostAlias Identifier
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
322 hi def link sudoersHostNameInList String
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
323 hi def link sudoersIPAddrInList Number
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
324 hi def link sudoersNetworkInList Number
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
325 hi def link sudoersHostNetgroupInList PreProc
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
326 hi def link sudoersHostAliasInList PreProc
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
327 hi def link sudoersHostName String
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
328 hi def link sudoersIPAddr Number
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
329 hi def link sudoersNetwork Number
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
330 hi def link sudoersHostNetgroup PreProc
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
331 hi def link sudoersHostAliasRef PreProc
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
332 hi def link sudoersHostNameInSpec String
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
333 hi def link sudoersIPAddrInSpec Number
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
334 hi def link sudoersNetworkInSpec Number
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
335 hi def link sudoersHostNetgroupInSpec PreProc
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
336 hi def link sudoersHostAliasInSpec PreProc
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
337 hi def link sudoersCmndAlias Identifier
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
338 hi def link sudoersCmndNameInList String
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
339 hi def link sudoersCmndAliasInList PreProc
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
340 hi def link sudoersCmndNameInSpec String
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
341 hi def link sudoersCmndAliasInSpec PreProc
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
342 hi def link sudoersUserAliasEquals Operator
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
343 hi def link sudoersUserListComma Delimiter
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
344 hi def link sudoersUserListColon Delimiter
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
345 hi def link sudoersUserSpecComma Delimiter
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
346 hi def link sudoersUserRunasBegin Delimiter
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
347 hi def link sudoersUserRunasComma Delimiter
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
348 hi def link sudoersUserRunasEnd Delimiter
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
349 hi def link sudoersHostAliasEquals Operator
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
350 hi def link sudoersHostListComma Delimiter
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
351 hi def link sudoersHostListColon Delimiter
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
352 hi def link sudoersHostSpecComma Delimiter
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
353 hi def link sudoersCmndAliasEquals Operator
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
354 hi def link sudoersCmndListComma Delimiter
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
355 hi def link sudoersCmndListColon Delimiter
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
356 hi def link sudoersCmndSpecComma Delimiter
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
357 hi def link sudoersCmndSpecColon Delimiter
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
358 hi def link sudoersUserNegationInList Operator
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
359 hi def link sudoersHostNegationInList Operator
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
360 hi def link sudoersCmndNegationInList Operator
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
361 hi def link sudoersUserNegation Operator
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
362 hi def link sudoersHostNegation Operator
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
363 hi def link sudoersUserNegationInSpec Operator
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
364 hi def link sudoersHostNegationInSpec Operator
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
365 hi def link sudoersUserNegationInRunas Operator
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
366 hi def link sudoersCmndNegationInSpec Operator
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
367 hi def link sudoersCommandArgs String
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
368 hi def link sudoersCommandEmpty Special
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
369 hi def link sudoersDefaultEntry Keyword
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
370 hi def link sudoersDefaultTypeAt Special
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
371 hi def link sudoersDefaultTypeColon Special
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
372 hi def link sudoersDefaultTypeGreaterThan Special
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
373 hi def link sudoersBooleanParameter Identifier
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
374 hi def link sudoersIntegerParameter Identifier
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
375 hi def link sudoersStringParameter Identifier
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
376 hi def link sudoersListParameter Identifier
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
377 hi def link sudoersParameterListComma Delimiter
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
378 hi def link sudoersIntegerParameterEquals Operator
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
379 hi def link sudoersStringParameterEquals Operator
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
380 hi def link sudoersListParameterEquals Operator
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
381 hi def link sudoersIntegerValue Number
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
382 hi def link sudoersStringValue String
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
383 hi def link sudoersListValue String
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
384 hi def link sudoersPASSWD Special
14372
2a4a2dc35c55 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
385 hi def link sudoersInclude Statement
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
386
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
387 let b:current_syntax = "sudoers"
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
388
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
389 let &cpo = s:cpo_save
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
390 unlet s:cpo_save