diff options
author | Christian Clason <c.clason@uni-graz.at> | 2024-03-31 18:37:59 +0200 |
---|---|---|
committer | Christian Clason <c.clason@uni-graz.at> | 2024-03-31 23:05:38 +0200 |
commit | 9b9dab622a89a620419f4e0682d235bd30d705db (patch) | |
tree | 2e283561dea1a25fd6c5b8cedfa37c30014679eb | |
parent | 20dd60f13ca6f2746f737233f194c7d11c0af2a5 (diff) | |
download | rneovim-9b9dab622a89a620419f4e0682d235bd30d705db.tar.gz rneovim-9b9dab622a89a620419f4e0682d235bd30d705db.tar.bz2 rneovim-9b9dab622a89a620419f4e0682d235bd30d705db.zip |
vim-patch:807fff135d52
runtime(pamconf): add support for Debian specific @includes
fixes: vim/vim#14335
https://github.com/vim/vim/commit/807fff135d52fe8e6e799b78b80cccb299d246a9
Co-authored-by: Christian Brabandt <cb@256bit.org>
-rw-r--r-- | runtime/syntax/pamconf.vim | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/runtime/syntax/pamconf.vim b/runtime/syntax/pamconf.vim index 29132848a9..1b5f901348 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" |