Skip to content

Commit 01c82b3

Browse files
author
steve
committed
namedOV_RP_DnsrpsEnable and
namedOV_RP_NsdnameEnable highlights both have crept into other syntaxes. Add the missing 'contained' into their statements.
1 parent 15ec3ce commit 01c82b3

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

syntax/bind-named.vim

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4038,7 +4038,7 @@ syn keyword namedOV_RP_DnsrpsOption contained
40384038
\ namedOV_RP_Dnsrps_Section
40394039

40404040
hi link namedOV_RP_DnsrpsEnable namedHL_Builtin
4041-
syn match namedOV_RP_DnsrpsEnable /\i\{1,16}/
4041+
syn match namedOV_RP_DnsrpsEnable contained /\i\{1,16}/
40424042
\ contains=namedTypeBool
40434043
\ skipwhite skipnl skipempty
40444044
\ nextgroup=
@@ -4062,7 +4062,7 @@ syn keyword namedOV_RP_Dnsrps contained dnsrps-enable
40624062
\ nextgroup=namedOV_RP_DnsrpsEnable
40634063

40644064
hi link namedOV_RP_NsdnameEnable namedHL_Builtin
4065-
syn match namedOV_RP_NsdnameEnable /\i\{1,16}/
4065+
syn match namedOV_RP_NsdnameEnable contained /\i\{1,16}/
40664066
\ contains=namedTypeBool
40674067
\ skipwhite skipnl skipempty
40684068
\ nextgroup=
@@ -6046,6 +6046,9 @@ syn match namedStmt_ZoneNameIdentifier contained /\S\+/
60466046
" Top-level statment (formerly clause) keywords
60476047
" 'uncontained' statements are the ones used GLOBALLY
60486048
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
6049+
hi link namedStmtKeywordUnknown namedHL_Error
6050+
syn match namedStmtKeywordUnknown /\<\S\*\>/
6051+
60496052
hi link namedStmtKeyword namedHL_Statement
60506053
syn match namedStmtKeyword /\_^\s*\<acl\>/
60516054
\ skipwhite skipnl skipempty

test/example-9.16-named.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,6 +1026,8 @@ trusted-keys { example.invalid 3 0 1 12397123987123987123971239879; };
10261026

10271027
view empty { };
10281028

1029+
asdfasddfasddf;
1030+
10291031
view redview {
10301032
/* help */ allow-new-zones yes;
10311033
allow-notify { 1.1.1.1; };
@@ -1048,6 +1050,7 @@ view redview {
10481050
alt-transfer-source * port * dscp 14;
10491051
alt-transfer-source-v6 fe08::7:8 port * dscp 3;
10501052
attach-cache view_red;
1053+
asdfasdfasddfasddf;
10511054
auth-nxdomain yes;
10521055
auto-dnssec maintain;
10531056
cache-file "/etc/bind/cache-file";

0 commit comments

Comments
 (0)