]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(pamconf): add support for Debian specific @includes
authorChristian Brabandt <cb@256bit.org>
Sun, 31 Mar 2024 16:04:21 +0000 (18:04 +0200)
committerChristian Brabandt <cb@256bit.org>
Sun, 31 Mar 2024 16:04:21 +0000 (18:04 +0200)
fixes: #14335

Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/syntax/pamconf.vim

index 29132848a95d5305770015dea6de0c146655af37..1b5f901348fe6cad01b815f790d1db67964f8975 100644 (file)
@@ -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"