1" Vim syntax file 2" Language: pam_env.conf(5) configuration file 3" Latest Revision: 2020-05-10 4 5if exists("b:current_syntax") 6 finish 7endif 8 9syn keyword pamenvTodo contained TODO FIXME XXX NOTE 10syn region pamenvComment start='^#' end='$' display oneline contains=pamenvTodo,@Spells 11 12syn match pamenvVars '^[A-Z_][A-Z_0-9]*' nextgroup=pamenvKeywords skipwhite 13 14syn keyword pamenvKeywords contained DEFAULT OVERRIDE nextgroup=pamenvVarEq 15 16syn match pamenvVarEq contained '=' nextgroup=pamenvValue,pamenvValueWithQuote 17 18syn match pamenvValue contained '[^ \t]*' skipwhite nextgroup=pamenvKeywords 19syn region pamenvValueWithQuote contained start='"' end='"' skipwhite nextgroup=pamenvKeywords 20 21hi def link pamenvTodo Todo 22hi def link pamenvComment Comment 23hi def link pamenvKeywords Keyword 24hi def link pamenvVars Identifier 25hi def link pamenvValue String 26hi def link pamenvValueWithQuote String 27 28let b:current_syntax = "pamenv" 29