Skip to content

Commit efcbd47

Browse files
author
steve
committed
2 parents 68dc592 + ed8616a commit efcbd47

File tree

1 file changed

+38
-8
lines changed

1 file changed

+38
-8
lines changed

syntax/bind-named.vim

Lines changed: 38 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,8 +1073,8 @@ syn match named_E_SuffixDomain_SC contained /\<[0-9A-Za-z\._\-]{1,1023}[A-Za-z\.
10731073
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""
10741074
" We'll do error RED highlighting on all statement firstly, then later on
10751075
" all the options, then all the clauses.
1076-
hi link namedStmtKeywordUnknown namedHL_Error
1077-
syn match namedStmtKeywordUnknown /\<\S\{1,64}\>/
1076+
" hi link namedStmtKeywordUnknown namedHL_Error
1077+
" syn match namedStmtKeywordUnknown /\<\S\{1,64}\>/
10781078

10791079

10801080
hi link namedInclude namedHL_Include
@@ -1127,8 +1127,8 @@ syn match namedA_KeyName contained
11271127
\ nextgroup=namedSemicolon
11281128

11291129
hi link namedA_Key namedHL_Option
1130-
syn keyword namedA_Key contained key skipwhite skipnl skipempty
1131-
\ nextgroup=namedA_KeyName
1130+
syn match namedA_Key contained /\<key\>/ skipwhite skipnl skipempty
1131+
\ nextgroup=named_Keyname_SC
11321132

11331133
hi link namedA_AML_Nested_Semicolon namedHL_Type
11341134
syn match namedA_AML_Nested_Semicolon contained
@@ -2925,7 +2925,7 @@ syn keyword namedZ_Boolean_Group contained skipwhite
29252925

29262926
hi link namedZ_File namedHL_Option
29272927
syn keyword namedZ_File contained file skipwhite
2928-
\ nextgroup=named_String_QuoteForced
2928+
\ nextgroup=named_String_QuoteForced_SC,namedNotString
29292929

29302930
hi link namedZ_InView namedHL_Option
29312931
syn keyword namedZ_InView contained in-view
@@ -5306,7 +5306,7 @@ syn keyword namedOVZ_OptATS contained
53065306
\ nextgroup=namedOptATS_IP4wild
53075307

53085308
hi link namedOVZ_AutoDNSSEC namedHL_Option
5309-
syn keyword namedOVZ_AutoDNSSEC contained auto-dnssec
5309+
syn match namedOVZ_AutoDNSSEC contained /\<auto\-dnssec\>/
53105310
\ skipwhite skipnl skipempty
53115311
\ nextgroup=
53125312
\ named_AllowMaintainOff,
@@ -5886,11 +5886,41 @@ syn region namedOSVZ_Masters_MML contained start=/{/ end=/}/
58865886
\ namedInclude,
58875887
\ namedComment
58885888

5889+
" 'dscp' added after `also-notify` at 9.9
5890+
hi link namedAlsoNotify_DscpNumber namedHL_Number
5891+
syn match namedAlsoNotify_DscpNumber contained /6[0-3]\|[0-5][0-9]\|[1-9]/
5892+
\ skipwhite skipnl skipempty
5893+
\ nextgroup=
5894+
\ namedAlsoNotify_Port,
5895+
\ namedOSVZ_Masters_MML
5896+
5897+
hi link namedAlsoNotify_Dscp namedHL_Option
5898+
syn match namedAlsoNotify_Dscp contained skipwhite skipnl skipempty
5899+
\ /\<dscp\>/
5900+
\ nextgroup=
5901+
\ namedAlsoNotify_DscpNumber
5902+
5903+
" 'port' added after `also-notify` at 9.9
5904+
hi link namedAlsoNotify_PortNumber namedHL_Number
5905+
syn match namedAlsoNotify_PortNumber contained
5906+
\ /\%(6553[0-5]\)\|\%(655[0-2][0-9]\)\|\%(65[0-4][0-9][0-9]\)\|\%(6[0-4][0-9]\{3,3}\)\|\([1-5]\%([0-9]\{1,4}\)\)\|\%([0-9]\{1,4}\)/
5907+
\ skipwhite skipnl skipempty
5908+
\ nextgroup=
5909+
\ namedAlsoNotify_Dscp,
5910+
\ namedOSVZ_Masters_MML
5911+
5912+
hi link namedAlsoNotify_Port namedHL_Option
5913+
syn match namedAlsoNotify_Port contained skipwhite skipnl skipempty
5914+
\ /\<port\>/
5915+
\ nextgroup=namedAlsoNotify_PortNumber
5916+
58895917
hi link namedOSVZ_AlsoNotify namedHL_Option
58905918
" In 'server', `also-notify` is no longer valid after 9.13
5891-
syn keyword namedOSVZ_AlsoNotify contained skipwhite
5892-
\ also-notify
5919+
syn match namedOSVZ_AlsoNotify contained skipwhite
5920+
\ /\<also\-notify\>/
58935921
\ nextgroup=
5922+
\ namedAlsoNotify_Dscp,
5923+
\ namedAlsoNotify_Port,
58945924
\ namedOSVZ_Masters_MML,
58955925
\ namedInclude,
58965926
\ namedComment,

0 commit comments

Comments
 (0)