summaryrefslogtreecommitdiffstats
path: root/runtime/syntax/pamconf.vim
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 02:10:59 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 02:10:59 +0000
commitcccb21df3b4c6fe0aaa99743c418aa973aeebad0 (patch)
tree35a2d1f88d47e930fec425da1c1cb89b3ccae6e0 /runtime/syntax/pamconf.vim
parentReleasing progress-linux version 2:9.1.0199-1~progress7.99u1. (diff)
downloadvim-cccb21df3b4c6fe0aaa99743c418aa973aeebad0.tar.xz
vim-cccb21df3b4c6fe0aaa99743c418aa973aeebad0.zip
Merging upstream version 2:9.1.0374.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--runtime/syntax/pamconf.vim13
1 files changed, 11 insertions, 2 deletions
diff --git a/runtime/syntax/pamconf.vim b/runtime/syntax/pamconf.vim
index 2913284..1b5f901 100644
--- a/runtime/syntax/pamconf.vim
+++ b/runtime/syntax/pamconf.vim
@@ -1,9 +1,9 @@
" Vim syntax file
" Language: pam(8) configuration file
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
-" Latest Revision: 2020/08/04
+" Latest Change: 2024/03/31
" Changes By: Haochen Tong
-
+" Vim Project for the @include syntax
if exists("b:current_syntax")
finish
@@ -23,6 +23,13 @@ syn match pamconfType '-\?[[:alpha:]]\+'
syn keyword pamconfTypeKeyword contained account auth password session
+" The @include syntax is Debian specific
+syn match pamconfInclude '^@include'
+ \ nextgroup=pamconfIncludeFile
+ \ skipwhite
+
+syn match pamconfIncludeFile '\f\+$'
+
if s:has_service_field
syn match pamconfService '^[[:graph:]]\+'
\ nextgroup=pamconfType,
@@ -124,6 +131,8 @@ hi def link pamconfMPath String
hi def link pamconfMPathLineCont pamconfServiceLineCont
hi def link pamconfArgs Normal
hi def link pamconfArgsLineCont pamconfServiceLineCont
+hi def link pamconfInclude Include
+hi def link pamconfIncludeFile Include
let b:current_syntax = "pamconf"