runtime(pamconf): add support for Debian specific @includes

Commit: 
https://github.com/vim/vim/commit/807fff135d52fe8e6e799b78b80cccb299d246a9
Author: Christian Brabandt <c...@256bit.org>
Date:   Sun Mar 31 18:04:21 2024 +0200

    runtime(pamconf): add support for Debian specific @includes
    
    fixes: https://github.com/vim/vim/issues/14335
    
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/syntax/pamconf.vim b/runtime/syntax/pamconf.vim
index 29132848a..1b5f90134 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 <n...@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     '\+$'
+
 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"
 

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1rqxpm-000G8B-HR%40256bit.org.

Raspunde prin e-mail lui