]>
Commit | Line | Data |
---|---|---|
2df0984e ER |
1 | --- vim74/runtime/syntax/sudoers.vim 2011-02-25 15:05:44.000000000 +0200 |
2 | +++ vim74/runtime/syntax/sudoers.vim 2013-12-27 20:00:19.631344071 +0200 | |
3 | @@ -23,7 +23,7 @@ | |
4 | ||
5 | syn keyword sudoersTodo contained TODO FIXME XXX NOTE | |
6 | ||
7 | -syn region sudoersComment display oneline start='#' end='$' contains=sudoersTodo | |
8 | +syn region sudoersComment display oneline start='#' end='$' contains=sudoersTodo,sudoersIncludeDirective | |
9 | ||
10 | syn keyword sudoersAlias User_Alias Runas_Alias nextgroup=sudoersUserAlias skipwhite skipnl | |
11 | syn keyword sudoersAlias Host_Alias nextgroup=sudoersHostAlias skipwhite skipnl | |
12 | @@ -142,6 +142,8 @@ | |
13 | syn match sudoersCommandArgsInSpec contained '[^[:space:],:=\\]\+\%(\\[[:space:],:=\\][^[:space:],:=\\]*\)*' nextgroup=sudoersCommandArgsInSpec,@sudoersCmndSpec skipwhite | |
14 | syn match sudoersCommandEmptyInSpec contained '""' nextgroup=@sudoersCmndSpec skipwhite skipnl | |
15 | ||
16 | +syn match sudoersIncludeDirective '^#include\%(dir\)\=' nextgroup=sudoersStringParameter,sudoersListParameter | |
17 | + | |
18 | syn keyword sudoersDefaultEntry Defaults nextgroup=sudoersDefaultTypeAt,sudoersDefaultTypeColon,sudoersDefaultTypeGreaterThan,@sudoersParameter skipwhite skipnl | |
19 | syn match sudoersDefaultTypeAt contained '@' nextgroup=@sudoersHost skipwhite skipnl | |
20 | syn match sudoersDefaultTypeColon contained ':' nextgroup=@sudoersUser skipwhite skipnl | |
21 | @@ -320,6 +322,7 @@ | |
22 | hi def link sudoersCommandArgs String | |
23 | hi def link sudoersCommandEmpty Special | |
24 | hi def link sudoersDefaultEntry Keyword | |
25 | +hi def link sudoersIncludeDirective Special | |
26 | hi def link sudoersDefaultTypeAt Special | |
27 | hi def link sudoersDefaultTypeColon Special | |
28 | hi def link sudoersDefaultTypeGreaterThan Special |