aboutsummaryrefslogtreecommitdiff
path: root/runtime/syntax/sudoers.vim
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-10-29 09:47:02 +0100
committerJustin M. Keyes <justinkz@gmail.com>2018-10-29 09:50:08 +0100
commit877d5c8be799bb89107741ed9a0e24e22a1b4295 (patch)
tree556185a0d0ebf1ea621610e03506aa55ef76a89f /runtime/syntax/sudoers.vim
parentd252be36e27a73087ff1d456866ce710db7b0c51 (diff)
downloadrneovim-877d5c8be799bb89107741ed9a0e24e22a1b4295.tar.gz
rneovim-877d5c8be799bb89107741ed9a0e24e22a1b4295.tar.bz2
rneovim-877d5c8be799bb89107741ed9a0e24e22a1b4295.zip
vim-patch:a9604e614517
Update runtime files. https://github.com/vim/vim/commit/a9604e61451707b38fdcb088fbfaeea2b922fef6
Diffstat (limited to 'runtime/syntax/sudoers.vim')
-rw-r--r--runtime/syntax/sudoers.vim5
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/syntax/sudoers.vim b/runtime/syntax/sudoers.vim
index df1eb99b42..31f5f2b7ed 100644
--- a/runtime/syntax/sudoers.vim
+++ b/runtime/syntax/sudoers.vim
@@ -1,7 +1,8 @@
" Vim syntax file
" Language: sudoers(5) configuration files
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
-" Latest Revision: 2011-02-24
+" Latest Revision: 2018-07-19
+" Recent Changes: Support for #include and #includedir.
if exists("b:current_syntax")
finish
@@ -24,6 +25,7 @@ syn cluster sudoersCmndSpecList contains=sudoersUserRunasBegin,sudoersPASS
syn keyword sudoersTodo contained TODO FIXME XXX NOTE
syn region sudoersComment display oneline start='#' end='$' contains=sudoersTodo
+syn region sudoersInclude display oneline start='#\(include\|includedir\)' end='$'
syn keyword sudoersAlias User_Alias Runas_Alias nextgroup=sudoersUserAlias skipwhite skipnl
syn keyword sudoersAlias Host_Alias nextgroup=sudoersHostAlias skipwhite skipnl
@@ -335,6 +337,7 @@ hi def link sudoersIntegerValue Number
hi def link sudoersStringValue String
hi def link sudoersListValue String
hi def link sudoersPASSWD Special
+hi def link sudoersInclude Statement
let b:current_syntax = "sudoers"