2014-07-10 21:05:51 -07:00
|
|
|
" Vim syntax file
|
2017-11-05 21:05:54 -07:00
|
|
|
" Language: sudoers(5) configuration files
|
2021-05-02 08:10:25 -07:00
|
|
|
" Maintainer: Eisuke Kawashima ( e.kawaschima+vim AT gmail.com )
|
2017-11-05 21:05:54 -07:00
|
|
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
2021-05-02 08:10:25 -07:00
|
|
|
" Latest Revision: 2021 Mar 15
|
2018-10-29 01:47:02 -07:00
|
|
|
" Recent Changes: Support for #include and #includedir.
|
2018-10-29 15:38:41 -07:00
|
|
|
" Added many new options (Samuel D. Leslie)
|
2014-07-10 21:05:51 -07:00
|
|
|
|
|
|
|
if exists("b:current_syntax")
|
|
|
|
finish
|
|
|
|
endif
|
|
|
|
|
|
|
|
let s:cpo_save = &cpo
|
|
|
|
set cpo&vim
|
|
|
|
|
|
|
|
" TODO: instead of 'skipnl', we would like to match a specific group that would
|
|
|
|
" match \\$ and then continue with the nextgroup, actually, the skipnl doesn't
|
|
|
|
" work...
|
|
|
|
" TODO: treat 'ALL' like a special (yay, a bundle of new rules!!!)
|
|
|
|
|
|
|
|
syn match sudoersUserSpec '^' nextgroup=@sudoersUserInSpec skipwhite
|
|
|
|
|
|
|
|
syn match sudoersSpecEquals contained '=' nextgroup=@sudoersCmndSpecList skipwhite
|
|
|
|
|
|
|
|
syn cluster sudoersCmndSpecList contains=sudoersUserRunasBegin,sudoersPASSWD,@sudoersCmndInSpec
|
|
|
|
|
|
|
|
syn keyword sudoersTodo contained TODO FIXME XXX NOTE
|
|
|
|
|
|
|
|
syn region sudoersComment display oneline start='#' end='$' contains=sudoersTodo
|
2021-05-02 08:10:25 -07:00
|
|
|
syn region sudoersInclude display oneline start='[#@]\%(include\|includedir\)\>' end='$'
|
2014-07-10 21:05:51 -07:00
|
|
|
|
|
|
|
syn keyword sudoersAlias User_Alias Runas_Alias nextgroup=sudoersUserAlias skipwhite skipnl
|
|
|
|
syn keyword sudoersAlias Host_Alias nextgroup=sudoersHostAlias skipwhite skipnl
|
|
|
|
syn keyword sudoersAlias Cmnd_Alias nextgroup=sudoersCmndAlias skipwhite skipnl
|
|
|
|
|
|
|
|
syn match sudoersUserAlias contained '\<\u[A-Z0-9_]*\>' nextgroup=sudoersUserAliasEquals skipwhite skipnl
|
|
|
|
syn match sudoersUserNameInList contained '\<\l\+\>' nextgroup=@sudoersUserList skipwhite skipnl
|
|
|
|
syn match sudoersUIDInList contained '#\d\+\>' nextgroup=@sudoersUserList skipwhite skipnl
|
|
|
|
syn match sudoersGroupInList contained '%\l\+\>' nextgroup=@sudoersUserList skipwhite skipnl
|
|
|
|
syn match sudoersUserNetgroupInList contained '+\l\+\>' nextgroup=@sudoersUserList skipwhite skipnl
|
|
|
|
syn match sudoersUserAliasInList contained '\<\u[A-Z0-9_]*\>' nextgroup=@sudoersUserList skipwhite skipnl
|
|
|
|
|
|
|
|
syn match sudoersUserName contained '\<\l\+\>' nextgroup=@sudoersParameter skipwhite skipnl
|
|
|
|
syn match sudoersUID contained '#\d\+\>' nextgroup=@sudoersParameter skipwhite skipnl
|
|
|
|
syn match sudoersGroup contained '%\l\+\>' nextgroup=@sudoersParameter skipwhite skipnl
|
|
|
|
syn match sudoersUserNetgroup contained '+\l\+\>' nextgroup=@sudoersParameter skipwhite skipnl
|
|
|
|
syn match sudoersUserAliasRef contained '\<\u[A-Z0-9_]*\>' nextgroup=@sudoersParameter skipwhite skipnl
|
|
|
|
|
|
|
|
syn match sudoersUserNameInSpec contained '\<\l\+\>' nextgroup=@sudoersUserSpec skipwhite skipnl
|
|
|
|
syn match sudoersUIDInSpec contained '#\d\+\>' nextgroup=@sudoersUserSpec skipwhite skipnl
|
|
|
|
syn match sudoersGroupInSpec contained '%\l\+\>' nextgroup=@sudoersUserSpec skipwhite skipnl
|
|
|
|
syn match sudoersUserNetgroupInSpec contained '+\l\+\>' nextgroup=@sudoersUserSpec skipwhite skipnl
|
|
|
|
syn match sudoersUserAliasInSpec contained '\<\u[A-Z0-9_]*\>' nextgroup=@sudoersUserSpec skipwhite skipnl
|
|
|
|
|
|
|
|
syn match sudoersUserNameInRunas contained '\<\l\+\>' nextgroup=@sudoersUserRunas skipwhite skipnl
|
|
|
|
syn match sudoersUIDInRunas contained '#\d\+\>' nextgroup=@sudoersUserRunas skipwhite skipnl
|
|
|
|
syn match sudoersGroupInRunas contained '%\l\+\>' nextgroup=@sudoersUserRunas skipwhite skipnl
|
|
|
|
syn match sudoersUserNetgroupInRunas contained '+\l\+\>' nextgroup=@sudoersUserRunas skipwhite skipnl
|
|
|
|
syn match sudoersUserAliasInRunas contained '\<\u[A-Z0-9_]*\>' nextgroup=@sudoersUserRunas skipwhite skipnl
|
|
|
|
|
|
|
|
syn match sudoersHostAlias contained '\<\u[A-Z0-9_]*\>' nextgroup=sudoersHostAliasEquals skipwhite skipnl
|
|
|
|
syn match sudoersHostNameInList contained '\<\l\+\>' nextgroup=@sudoersHostList skipwhite skipnl
|
|
|
|
syn match sudoersIPAddrInList contained '\%(\d\{1,3}\.\)\{3}\d\{1,3}' nextgroup=@sudoersHostList skipwhite skipnl
|
|
|
|
syn match sudoersNetworkInList contained '\%(\d\{1,3}\.\)\{3}\d\{1,3}\%(/\%(\%(\d\{1,3}\.\)\{3}\d\{1,3}\|\d\+\)\)\=' nextgroup=@sudoersHostList skipwhite skipnl
|
|
|
|
syn match sudoersHostNetgroupInList contained '+\l\+\>' nextgroup=@sudoersHostList skipwhite skipnl
|
|
|
|
syn match sudoersHostAliasInList contained '\<\u[A-Z0-9_]*\>' nextgroup=@sudoersHostList skipwhite skipnl
|
|
|
|
|
|
|
|
syn match sudoersHostName contained '\<\l\+\>' nextgroup=@sudoersParameter skipwhite skipnl
|
|
|
|
syn match sudoersIPAddr contained '\%(\d\{1,3}\.\)\{3}\d\{1,3}' nextgroup=@sudoersParameter skipwhite skipnl
|
|
|
|
syn match sudoersNetwork contained '\%(\d\{1,3}\.\)\{3}\d\{1,3}\%(/\%(\%(\d\{1,3}\.\)\{3}\d\{1,3}\|\d\+\)\)\=' nextgroup=@sudoersParameter skipwhite skipnl
|
|
|
|
syn match sudoersHostNetgroup contained '+\l\+\>' nextgroup=@sudoersParameter skipwhite skipnl
|
|
|
|
syn match sudoersHostAliasRef contained '\<\u[A-Z0-9_]*\>' nextgroup=@sudoersParameter skipwhite skipnl
|
|
|
|
|
|
|
|
syn match sudoersHostNameInSpec contained '\<\l\+\>' nextgroup=@sudoersHostSpec skipwhite skipnl
|
|
|
|
syn match sudoersIPAddrInSpec contained '\%(\d\{1,3}\.\)\{3}\d\{1,3}' nextgroup=@sudoersHostSpec skipwhite skipnl
|
|
|
|
syn match sudoersNetworkInSpec contained '\%(\d\{1,3}\.\)\{3}\d\{1,3}\%(/\%(\%(\d\{1,3}\.\)\{3}\d\{1,3}\|\d\+\)\)\=' nextgroup=@sudoersHostSpec skipwhite skipnl
|
|
|
|
syn match sudoersHostNetgroupInSpec contained '+\l\+\>' nextgroup=@sudoersHostSpec skipwhite skipnl
|
|
|
|
syn match sudoersHostAliasInSpec contained '\<\u[A-Z0-9_]*\>' nextgroup=@sudoersHostSpec skipwhite skipnl
|
|
|
|
|
|
|
|
syn match sudoersCmndAlias contained '\<\u[A-Z0-9_]*\>' nextgroup=sudoersCmndAliasEquals skipwhite skipnl
|
|
|
|
syn match sudoersCmndNameInList contained '[^[:space:],:=\\]\+\%(\\[[:space:],:=\\][^[:space:],:=\\]*\)*' nextgroup=@sudoersCmndList,sudoersCommandEmpty,sudoersCommandArgs skipwhite
|
|
|
|
syn match sudoersCmndAliasInList contained '\<\u[A-Z0-9_]*\>' nextgroup=@sudoersCmndList skipwhite skipnl
|
|
|
|
|
|
|
|
syn match sudoersCmndNameInSpec contained '[^[:space:],:=\\]\+\%(\\[[:space:],:=\\][^[:space:],:=\\]*\)*' nextgroup=@sudoersCmndSpec,sudoersCommandEmptyInSpec,sudoersCommandArgsInSpec skipwhite
|
|
|
|
syn match sudoersCmndAliasInSpec contained '\<\u[A-Z0-9_]*\>' nextgroup=@sudoersCmndSpec skipwhite skipnl
|
|
|
|
|
|
|
|
syn match sudoersUserAliasEquals contained '=' nextgroup=@sudoersUserInList skipwhite skipnl
|
|
|
|
syn match sudoersUserListComma contained ',' nextgroup=@sudoersUserInList skipwhite skipnl
|
|
|
|
syn match sudoersUserListColon contained ':' nextgroup=sudoersUserAlias skipwhite skipnl
|
|
|
|
syn cluster sudoersUserList contains=sudoersUserListComma,sudoersUserListColon
|
|
|
|
|
|
|
|
syn match sudoersUserSpecComma contained ',' nextgroup=@sudoersUserInSpec skipwhite skipnl
|
|
|
|
syn cluster sudoersUserSpec contains=sudoersUserSpecComma,@sudoersHostInSpec
|
|
|
|
|
|
|
|
syn match sudoersUserRunasBegin contained '(' nextgroup=@sudoersUserInRunas skipwhite skipnl
|
|
|
|
syn match sudoersUserRunasComma contained ',' nextgroup=@sudoersUserInRunas skipwhite skipnl
|
|
|
|
syn match sudoersUserRunasEnd contained ')' nextgroup=sudoersPASSWD,@sudoersCmndInSpec skipwhite skipnl
|
|
|
|
syn cluster sudoersUserRunas contains=sudoersUserRunasComma,@sudoersUserInRunas,sudoersUserRunasEnd
|
|
|
|
|
|
|
|
|
|
|
|
syn match sudoersHostAliasEquals contained '=' nextgroup=@sudoersHostInList skipwhite skipnl
|
|
|
|
syn match sudoersHostListComma contained ',' nextgroup=@sudoersHostInList skipwhite skipnl
|
|
|
|
syn match sudoersHostListColon contained ':' nextgroup=sudoersHostAlias skipwhite skipnl
|
|
|
|
syn cluster sudoersHostList contains=sudoersHostListComma,sudoersHostListColon
|
|
|
|
|
|
|
|
syn match sudoersHostSpecComma contained ',' nextgroup=@sudoersHostInSpec skipwhite skipnl
|
|
|
|
syn cluster sudoersHostSpec contains=sudoersHostSpecComma,sudoersSpecEquals
|
|
|
|
|
|
|
|
|
|
|
|
syn match sudoersCmndAliasEquals contained '=' nextgroup=@sudoersCmndInList skipwhite skipnl
|
|
|
|
syn match sudoersCmndListComma contained ',' nextgroup=@sudoersCmndInList skipwhite skipnl
|
|
|
|
syn match sudoersCmndListColon contained ':' nextgroup=sudoersCmndAlias skipwhite skipnl
|
|
|
|
syn cluster sudoersCmndList contains=sudoersCmndListComma,sudoersCmndListColon
|
|
|
|
|
|
|
|
syn match sudoersCmndSpecComma contained ',' nextgroup=@sudoersCmndSpecList skipwhite skipnl
|
|
|
|
syn match sudoersCmndSpecColon contained ':' nextgroup=@sudoersUserInSpec skipwhite skipnl
|
|
|
|
syn cluster sudoersCmndSpec contains=sudoersCmndSpecComma,sudoersCmndSpecColon
|
|
|
|
|
|
|
|
syn cluster sudoersUserInList contains=sudoersUserNegationInList,sudoersUserNameInList,sudoersUIDInList,sudoersGroupInList,sudoersUserNetgroupInList,sudoersUserAliasInList
|
|
|
|
syn cluster sudoersHostInList contains=sudoersHostNegationInList,sudoersHostNameInList,sudoersIPAddrInList,sudoersNetworkInList,sudoersHostNetgroupInList,sudoersHostAliasInList
|
|
|
|
syn cluster sudoersCmndInList contains=sudoersCmndNegationInList,sudoersCmndNameInList,sudoersCmndAliasInList
|
|
|
|
|
|
|
|
syn cluster sudoersUser contains=sudoersUserNegation,sudoersUserName,sudoersUID,sudoersGroup,sudoersUserNetgroup,sudoersUserAliasRef
|
|
|
|
syn cluster sudoersHost contains=sudoersHostNegation,sudoersHostName,sudoersIPAddr,sudoersNetwork,sudoersHostNetgroup,sudoersHostAliasRef
|
|
|
|
|
|
|
|
syn cluster sudoersUserInSpec contains=sudoersUserNegationInSpec,sudoersUserNameInSpec,sudoersUIDInSpec,sudoersGroupInSpec,sudoersUserNetgroupInSpec,sudoersUserAliasInSpec
|
|
|
|
syn cluster sudoersHostInSpec contains=sudoersHostNegationInSpec,sudoersHostNameInSpec,sudoersIPAddrInSpec,sudoersNetworkInSpec,sudoersHostNetgroupInSpec,sudoersHostAliasInSpec
|
|
|
|
syn cluster sudoersUserInRunas contains=sudoersUserNegationInRunas,sudoersUserNameInRunas,sudoersUIDInRunas,sudoersGroupInRunas,sudoersUserNetgroupInRunas,sudoersUserAliasInRunas
|
|
|
|
syn cluster sudoersCmndInSpec contains=sudoersCmndNegationInSpec,sudoersCmndNameInSpec,sudoersCmndAliasInSpec
|
|
|
|
|
|
|
|
syn match sudoersUserNegationInList contained '!\+' nextgroup=@sudoersUserInList skipwhite skipnl
|
|
|
|
syn match sudoersHostNegationInList contained '!\+' nextgroup=@sudoersHostInList skipwhite skipnl
|
|
|
|
syn match sudoersCmndNegationInList contained '!\+' nextgroup=@sudoersCmndInList skipwhite skipnl
|
|
|
|
|
|
|
|
syn match sudoersUserNegation contained '!\+' nextgroup=@sudoersUser skipwhite skipnl
|
|
|
|
syn match sudoersHostNegation contained '!\+' nextgroup=@sudoersHost skipwhite skipnl
|
|
|
|
|
|
|
|
syn match sudoersUserNegationInSpec contained '!\+' nextgroup=@sudoersUserInSpec skipwhite skipnl
|
|
|
|
syn match sudoersHostNegationInSpec contained '!\+' nextgroup=@sudoersHostInSpec skipwhite skipnl
|
|
|
|
syn match sudoersUserNegationInRunas contained '!\+' nextgroup=@sudoersUserInRunas skipwhite skipnl
|
|
|
|
syn match sudoersCmndNegationInSpec contained '!\+' nextgroup=@sudoersCmndInSpec skipwhite skipnl
|
|
|
|
|
|
|
|
syn match sudoersCommandArgs contained '[^[:space:],:=\\]\+\%(\\[[:space:],:=\\][^[:space:],:=\\]*\)*' nextgroup=sudoersCommandArgs,@sudoersCmndList skipwhite
|
|
|
|
syn match sudoersCommandEmpty contained '""' nextgroup=@sudoersCmndList skipwhite skipnl
|
|
|
|
|
|
|
|
syn match sudoersCommandArgsInSpec contained '[^[:space:],:=\\]\+\%(\\[[:space:],:=\\][^[:space:],:=\\]*\)*' nextgroup=sudoersCommandArgsInSpec,@sudoersCmndSpec skipwhite
|
|
|
|
syn match sudoersCommandEmptyInSpec contained '""' nextgroup=@sudoersCmndSpec skipwhite skipnl
|
|
|
|
|
|
|
|
syn keyword sudoersDefaultEntry Defaults nextgroup=sudoersDefaultTypeAt,sudoersDefaultTypeColon,sudoersDefaultTypeGreaterThan,@sudoersParameter skipwhite skipnl
|
|
|
|
syn match sudoersDefaultTypeAt contained '@' nextgroup=@sudoersHost skipwhite skipnl
|
|
|
|
syn match sudoersDefaultTypeColon contained ':' nextgroup=@sudoersUser skipwhite skipnl
|
|
|
|
syn match sudoersDefaultTypeGreaterThan contained '>' nextgroup=@sudoersUser skipwhite skipnl
|
|
|
|
|
|
|
|
" TODO: could also deal with special characters here
|
|
|
|
syn match sudoersBooleanParameter contained '!' nextgroup=sudoersBooleanParameter skipwhite skipnl
|
|
|
|
syn keyword sudoersBooleanParameter contained skipwhite skipnl
|
2018-10-29 15:38:41 -07:00
|
|
|
\ always_query_group_plugin
|
2014-07-10 21:05:51 -07:00
|
|
|
\ always_set_home
|
|
|
|
\ authenticate
|
|
|
|
\ closefrom_override
|
2018-10-29 15:38:41 -07:00
|
|
|
\ compress_io
|
2014-07-10 21:05:51 -07:00
|
|
|
\ env_editor
|
|
|
|
\ env_reset
|
2018-10-29 15:38:41 -07:00
|
|
|
\ exec_background
|
|
|
|
\ fast_glob
|
2014-07-10 21:05:51 -07:00
|
|
|
\ fqdn
|
2018-10-29 15:38:41 -07:00
|
|
|
\ ignore_audit_errors
|
2014-07-10 21:05:51 -07:00
|
|
|
\ ignore_dot
|
2018-10-29 15:38:41 -07:00
|
|
|
\ ignore_iolog_errors
|
2014-07-10 21:05:51 -07:00
|
|
|
\ ignore_local_sudoers
|
2018-10-29 15:38:41 -07:00
|
|
|
\ ignore_logfile_errors
|
|
|
|
\ ignore_unknown_defaults
|
2014-07-10 21:05:51 -07:00
|
|
|
\ insults
|
|
|
|
\ log_host
|
2018-10-29 15:38:41 -07:00
|
|
|
\ log_input
|
|
|
|
\ log_output
|
2014-07-10 21:05:51 -07:00
|
|
|
\ log_year
|
|
|
|
\ long_otp_prompt
|
2018-10-29 15:38:41 -07:00
|
|
|
\ mail_all_cmnds
|
2014-07-10 21:05:51 -07:00
|
|
|
\ mail_always
|
|
|
|
\ mail_badpass
|
|
|
|
\ mail_no_host
|
|
|
|
\ mail_no_perms
|
|
|
|
\ mail_no_user
|
2018-10-29 15:38:41 -07:00
|
|
|
\ match_group_by_gid
|
|
|
|
\ netgroup_tuple
|
2014-07-10 21:05:51 -07:00
|
|
|
\ noexec
|
2018-10-29 15:38:41 -07:00
|
|
|
\ pam_session
|
|
|
|
\ pam_setcred
|
2014-07-10 21:05:51 -07:00
|
|
|
\ passprompt_override
|
2018-10-29 15:38:41 -07:00
|
|
|
\ path_info
|
2014-07-10 21:05:51 -07:00
|
|
|
\ preserve_groups
|
2018-10-29 15:38:41 -07:00
|
|
|
\ pwfeedback
|
2014-07-10 21:05:51 -07:00
|
|
|
\ requiretty
|
|
|
|
\ root_sudo
|
|
|
|
\ rootpw
|
|
|
|
\ runaspw
|
|
|
|
\ set_home
|
|
|
|
\ set_logname
|
2018-10-29 15:38:41 -07:00
|
|
|
\ set_utmp
|
2014-07-10 21:05:51 -07:00
|
|
|
\ setenv
|
|
|
|
\ shell_noargs
|
|
|
|
\ stay_setuid
|
2018-10-29 15:38:41 -07:00
|
|
|
\ sudoedit_checkdir
|
2021-05-02 08:10:25 -07:00
|
|
|
\ sudoedit_follow
|
2018-10-29 15:38:41 -07:00
|
|
|
\ syslog_pid
|
2014-07-10 21:05:51 -07:00
|
|
|
\ targetpw
|
|
|
|
\ tty_tickets
|
2018-10-29 15:38:41 -07:00
|
|
|
\ umask_override
|
|
|
|
\ use_netgroups
|
|
|
|
\ use_pty
|
|
|
|
\ user_command_timeouts
|
|
|
|
\ utmp_runas
|
2014-07-10 21:05:51 -07:00
|
|
|
\ visiblepw
|
|
|
|
|
|
|
|
syn keyword sudoersIntegerParameter contained
|
|
|
|
\ nextgroup=sudoersIntegerParameterEquals
|
|
|
|
\ skipwhite skipnl
|
|
|
|
\ closefrom
|
2018-10-29 15:38:41 -07:00
|
|
|
\ command_timeout
|
2014-07-10 21:05:51 -07:00
|
|
|
\ loglinelen
|
2018-10-29 15:38:41 -07:00
|
|
|
\ maxseq
|
2014-07-10 21:05:51 -07:00
|
|
|
\ passwd_timeout
|
2018-10-29 15:38:41 -07:00
|
|
|
\ passwd_tries
|
|
|
|
\ syslog_maxlen
|
2014-07-10 21:05:51 -07:00
|
|
|
\ timestamp_timeout
|
|
|
|
\ umask
|
|
|
|
|
|
|
|
syn keyword sudoersStringParameter contained
|
|
|
|
\ nextgroup=sudoersStringParameterEquals
|
|
|
|
\ skipwhite skipnl
|
2018-10-29 15:38:41 -07:00
|
|
|
\ askpass
|
2014-07-10 21:05:51 -07:00
|
|
|
\ badpass_message
|
|
|
|
\ editor
|
|
|
|
\ env_file
|
|
|
|
\ exempt_group
|
2018-10-29 15:38:41 -07:00
|
|
|
\ fdexec
|
|
|
|
\ group_plugin
|
|
|
|
\ iolog_dir
|
|
|
|
\ iolog_file
|
|
|
|
\ iolog_flush
|
|
|
|
\ iolog_group
|
|
|
|
\ iolog_mode
|
|
|
|
\ iolog_user
|
2014-07-10 21:05:51 -07:00
|
|
|
\ lecture
|
|
|
|
\ lecture_file
|
2018-10-29 15:38:41 -07:00
|
|
|
\ lecture_status_dir
|
2014-07-10 21:05:51 -07:00
|
|
|
\ listpw
|
|
|
|
\ logfile
|
|
|
|
\ mailerflags
|
|
|
|
\ mailerpath
|
|
|
|
\ mailfrom
|
2018-10-29 15:38:41 -07:00
|
|
|
\ mailsub
|
2014-07-10 21:05:51 -07:00
|
|
|
\ mailto
|
2018-10-29 15:38:41 -07:00
|
|
|
\ noexec_file
|
|
|
|
\ pam_login_service
|
|
|
|
\ pam_service
|
|
|
|
\ passprompt
|
|
|
|
\ restricted_env_file
|
|
|
|
\ role
|
|
|
|
\ runas_default
|
2014-07-10 21:05:51 -07:00
|
|
|
\ secure_path
|
2018-10-29 15:38:41 -07:00
|
|
|
\ sudoers_locale
|
2014-07-10 21:05:51 -07:00
|
|
|
\ syslog
|
2018-10-29 15:38:41 -07:00
|
|
|
\ syslog_badpri
|
|
|
|
\ syslog_goodpri
|
|
|
|
\ timestamp_type
|
|
|
|
\ timestampdir
|
|
|
|
\ timestampowner
|
|
|
|
\ type
|
2014-07-10 21:05:51 -07:00
|
|
|
\ verifypw
|
|
|
|
|
|
|
|
syn keyword sudoersListParameter contained
|
|
|
|
\ nextgroup=sudoersListParameterEquals
|
|
|
|
\ skipwhite skipnl
|
|
|
|
\ env_check
|
|
|
|
\ env_delete
|
|
|
|
\ env_keep
|
|
|
|
|
|
|
|
syn match sudoersParameterListComma contained ',' nextgroup=@sudoersParameter skipwhite skipnl
|
|
|
|
|
|
|
|
syn cluster sudoersParameter contains=sudoersBooleanParameter,sudoersIntegerParameter,sudoersStringParameter,sudoersListParameter
|
|
|
|
|
|
|
|
syn match sudoersIntegerParameterEquals contained '[+-]\==' nextgroup=sudoersIntegerValue skipwhite skipnl
|
|
|
|
syn match sudoersStringParameterEquals contained '[+-]\==' nextgroup=sudoersStringValue skipwhite skipnl
|
|
|
|
syn match sudoersListParameterEquals contained '[+-]\==' nextgroup=sudoersListValue skipwhite skipnl
|
|
|
|
|
|
|
|
syn match sudoersIntegerValue contained '\d\+' nextgroup=sudoersParameterListComma skipwhite skipnl
|
|
|
|
syn match sudoersStringValue contained '[^[:space:],:=\\]*\%(\\[[:space:],:=\\][^[:space:],:=\\]*\)*' nextgroup=sudoersParameterListComma skipwhite skipnl
|
|
|
|
syn region sudoersStringValue contained start=+"+ skip=+\\"+ end=+"+ nextgroup=sudoersParameterListComma skipwhite skipnl
|
|
|
|
syn match sudoersListValue contained '[^[:space:],:=\\]*\%(\\[[:space:],:=\\][^[:space:],:=\\]*\)*' nextgroup=sudoersParameterListComma skipwhite skipnl
|
|
|
|
syn region sudoersListValue contained start=+"+ skip=+\\"+ end=+"+ nextgroup=sudoersParameterListComma skipwhite skipnl
|
|
|
|
|
|
|
|
syn match sudoersPASSWD contained '\%(NO\)\=PASSWD:' nextgroup=@sudoersCmndInSpec skipwhite
|
|
|
|
|
|
|
|
hi def link sudoersSpecEquals Operator
|
|
|
|
hi def link sudoersTodo Todo
|
|
|
|
hi def link sudoersComment Comment
|
|
|
|
hi def link sudoersAlias Keyword
|
|
|
|
hi def link sudoersUserAlias Identifier
|
|
|
|
hi def link sudoersUserNameInList String
|
|
|
|
hi def link sudoersUIDInList Number
|
|
|
|
hi def link sudoersGroupInList PreProc
|
|
|
|
hi def link sudoersUserNetgroupInList PreProc
|
|
|
|
hi def link sudoersUserAliasInList PreProc
|
|
|
|
hi def link sudoersUserName String
|
|
|
|
hi def link sudoersUID Number
|
|
|
|
hi def link sudoersGroup PreProc
|
|
|
|
hi def link sudoersUserNetgroup PreProc
|
|
|
|
hi def link sudoersUserAliasRef PreProc
|
|
|
|
hi def link sudoersUserNameInSpec String
|
|
|
|
hi def link sudoersUIDInSpec Number
|
|
|
|
hi def link sudoersGroupInSpec PreProc
|
|
|
|
hi def link sudoersUserNetgroupInSpec PreProc
|
|
|
|
hi def link sudoersUserAliasInSpec PreProc
|
|
|
|
hi def link sudoersUserNameInRunas String
|
|
|
|
hi def link sudoersUIDInRunas Number
|
|
|
|
hi def link sudoersGroupInRunas PreProc
|
|
|
|
hi def link sudoersUserNetgroupInRunas PreProc
|
|
|
|
hi def link sudoersUserAliasInRunas PreProc
|
|
|
|
hi def link sudoersHostAlias Identifier
|
|
|
|
hi def link sudoersHostNameInList String
|
|
|
|
hi def link sudoersIPAddrInList Number
|
|
|
|
hi def link sudoersNetworkInList Number
|
|
|
|
hi def link sudoersHostNetgroupInList PreProc
|
|
|
|
hi def link sudoersHostAliasInList PreProc
|
|
|
|
hi def link sudoersHostName String
|
|
|
|
hi def link sudoersIPAddr Number
|
|
|
|
hi def link sudoersNetwork Number
|
|
|
|
hi def link sudoersHostNetgroup PreProc
|
|
|
|
hi def link sudoersHostAliasRef PreProc
|
|
|
|
hi def link sudoersHostNameInSpec String
|
|
|
|
hi def link sudoersIPAddrInSpec Number
|
|
|
|
hi def link sudoersNetworkInSpec Number
|
|
|
|
hi def link sudoersHostNetgroupInSpec PreProc
|
|
|
|
hi def link sudoersHostAliasInSpec PreProc
|
|
|
|
hi def link sudoersCmndAlias Identifier
|
|
|
|
hi def link sudoersCmndNameInList String
|
|
|
|
hi def link sudoersCmndAliasInList PreProc
|
|
|
|
hi def link sudoersCmndNameInSpec String
|
|
|
|
hi def link sudoersCmndAliasInSpec PreProc
|
|
|
|
hi def link sudoersUserAliasEquals Operator
|
|
|
|
hi def link sudoersUserListComma Delimiter
|
|
|
|
hi def link sudoersUserListColon Delimiter
|
|
|
|
hi def link sudoersUserSpecComma Delimiter
|
|
|
|
hi def link sudoersUserRunasBegin Delimiter
|
|
|
|
hi def link sudoersUserRunasComma Delimiter
|
|
|
|
hi def link sudoersUserRunasEnd Delimiter
|
|
|
|
hi def link sudoersHostAliasEquals Operator
|
|
|
|
hi def link sudoersHostListComma Delimiter
|
|
|
|
hi def link sudoersHostListColon Delimiter
|
|
|
|
hi def link sudoersHostSpecComma Delimiter
|
|
|
|
hi def link sudoersCmndAliasEquals Operator
|
|
|
|
hi def link sudoersCmndListComma Delimiter
|
|
|
|
hi def link sudoersCmndListColon Delimiter
|
|
|
|
hi def link sudoersCmndSpecComma Delimiter
|
|
|
|
hi def link sudoersCmndSpecColon Delimiter
|
|
|
|
hi def link sudoersUserNegationInList Operator
|
|
|
|
hi def link sudoersHostNegationInList Operator
|
|
|
|
hi def link sudoersCmndNegationInList Operator
|
|
|
|
hi def link sudoersUserNegation Operator
|
|
|
|
hi def link sudoersHostNegation Operator
|
|
|
|
hi def link sudoersUserNegationInSpec Operator
|
|
|
|
hi def link sudoersHostNegationInSpec Operator
|
|
|
|
hi def link sudoersUserNegationInRunas Operator
|
|
|
|
hi def link sudoersCmndNegationInSpec Operator
|
|
|
|
hi def link sudoersCommandArgs String
|
|
|
|
hi def link sudoersCommandEmpty Special
|
|
|
|
hi def link sudoersDefaultEntry Keyword
|
|
|
|
hi def link sudoersDefaultTypeAt Special
|
|
|
|
hi def link sudoersDefaultTypeColon Special
|
|
|
|
hi def link sudoersDefaultTypeGreaterThan Special
|
|
|
|
hi def link sudoersBooleanParameter Identifier
|
|
|
|
hi def link sudoersIntegerParameter Identifier
|
|
|
|
hi def link sudoersStringParameter Identifier
|
|
|
|
hi def link sudoersListParameter Identifier
|
|
|
|
hi def link sudoersParameterListComma Delimiter
|
|
|
|
hi def link sudoersIntegerParameterEquals Operator
|
|
|
|
hi def link sudoersStringParameterEquals Operator
|
|
|
|
hi def link sudoersListParameterEquals Operator
|
|
|
|
hi def link sudoersIntegerValue Number
|
|
|
|
hi def link sudoersStringValue String
|
|
|
|
hi def link sudoersListValue String
|
|
|
|
hi def link sudoersPASSWD Special
|
2018-10-29 01:47:02 -07:00
|
|
|
hi def link sudoersInclude Statement
|
2014-07-10 21:05:51 -07:00
|
|
|
|
|
|
|
let b:current_syntax = "sudoers"
|
|
|
|
|
|
|
|
let &cpo = s:cpo_save
|
|
|
|
unlet s:cpo_save
|