Skip to content

Commit 7ea95c0

Browse files
author
Aurelien Degremont
committed
vim: update groups.conf vim syntax file
Update vim syntax file for groups.conf with missing changes like $CFGDIR Change-Id: I58e1b6e7bc3515cf70fa4d542c323966eb4c74fc
1 parent 92409be commit 7ea95c0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

doc/extras/vim/syntax/groupsconf.vim

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ syn case ignore
1616
syn match groupsDefaultValue "\(:\|=\)\s*\w\+$"ms=s+1 contained
1717
syn match groupsColonValue "\(:\|=\).*" contained contains=groupsDefaultValue
1818
syn match groupsDefaultKey "^default\(:\|=\).*$" contains=groupsColonValue
19-
syn match groupsGroupsDirKey "^\(groupsdir\|confdir\|autodir\)\(:\|=\)"
19+
syn match groupsGroupsDirKey "^\(groupsdir\|confdir\|autodir\)\(:\|=\).*$" contains=groupsKeys,groupsVars
2020

2121
" Sources
22-
syn match groupsVars "\(\$GROUP\|\$NODE\|$SOURCE\)" contained
22+
syn match groupsVars "\(\$GROUP\|\$NODE\|$SOURCE\|$CFGDIR\)" contained
2323
syn match groupsKeys "^\w\+\(:\|=\)"me=e-1 contained
2424
syn match groupsKeyValue "^\(map\|all\|list\|reverse\|cache_time\)\+\(:\|=\).*$" contains=groupsKeys,groupsVars
2525

@@ -47,7 +47,6 @@ if version >= 508 || !exists("did_groupsconf_syntax_inits")
4747
HiLink groupsComment Comment
4848
HiLink groupsMainHeader Constant
4949
HiLink groupsDefaultKey Identifier
50-
HiLink groupsGroupsDirKey Identifier
5150
HiLink groupsDefaultValue Special
5251
HiLink groupsKeys Identifier
5352
HiLink groupsVars Keyword

0 commit comments

Comments
 (0)