|
1 | 1 | " Vim syntax file for ISC BIND v9.16 named.conf configuration file |
2 | 2 | " Language: ISC BIND named.conf configuration file |
3 | 3 | " Maintainer: egberts <egberts@github.com> |
4 | | -" Last change: 2020-04-22 |
| 4 | +" Last change: 2020-04-24 |
5 | 5 | " Filenames: named.conf, rndc.conf |
6 | 6 | " Filenames: named[-_]*.conf, rndc[-_]*.conf |
7 | 7 | " Filenames: *[-_]named.conf |
8 | | -" Location: http://github.com/egberts/vim-syntax-bind-named |
| 8 | +" Location: https://github.com/egberts/vim-syntax-bind-named |
9 | 9 | " License: MIT license |
10 | 10 | " Remarks: |
| 11 | +" Bug Report: https://github.com/egberts/vim-syntax-bind-named/issues |
11 | 12 | " |
12 | | -" Still in BETA version |
13 | 13 | " |
14 | 14 | " Inspired by Nick Hibma <nick@van-laarhoven.org> 'named.vim', |
15 | 15 | " also by glory hump <rnd@web-drive.ru>, and Marcin Dalecki. |
16 | 16 | " |
17 | 17 | " Jumpstarted to Bind 9.15 by Egberts <egberts@github.com> |
18 | 18 | " |
19 | 19 | " This file could do with a lot of improvements, so comments are welcome. |
20 | | -" Please submit the named.conf (segment) with any comments. |
| 20 | +" Please submit the afflicted but privatized version of your |
| 21 | +" named.conf (segment) file snippet with any comments. |
21 | 22 | " |
22 | 23 | " Basic highlighting is covered for all Bind configuration |
23 | | -" options. Only normal (defaults is white) highlight gets |
24 | | -" used to show 'undetected' Bind syntax. |
| 24 | +" options. Only 'Normal' (default to black; if dark backgroud, white) |
| 25 | +" highlight gets used to show 'undetected' Bind syntax. |
25 | 26 | " |
26 | 27 | " Every valid keywords get colorized. Every character-valid |
27 | | -" values get colorized, some range-checking here. |
| 28 | +" values get colorized, some range-checking done here. |
28 | 29 | " |
29 | | -" New Bind 9.13+ terminologies here: |
30 | | -" Stmt - top-level keyword (formerly 'clause' from Bind 4 |
31 | | -" to 9.11) |
| 30 | +" Most importantly, every semicolon must be colorized. |
| 31 | +" |
| 32 | +" New Bind 9.13+ terminologies/notation used here: |
| 33 | +" Stmt - top-level statement keyword (formerly 'clause' |
| 34 | +" from Bind 4 to 9.11) |
32 | 35 | " Opt - an option keyword found within each of its |
33 | 36 | " top-level keywords. |
34 | 37 | " Clause - very specific keywords used within each of its |
35 | 38 | " option statement |
36 | 39 | " |
37 | 40 | " Syntax Naming Convention: |
38 | 41 | " All macro names that are defined here start with |
39 | | -" 'named' prefix. This is a Vim standard. |
| 42 | +" 'named' prefix. This is a Vim standard to ensure |
| 43 | +" no conflict with global Vim namespace. |
40 | 44 | " |
41 | 45 | " Each macro name contains a camel-case notation to |
42 | 46 | " denote each shorten word that identifies the: |
|
88 | 92 | " like Vim identifier here. |
89 | 93 | " Another reason why you shouldn't use period or slashes |
90 | 94 | " in ACL names because it would only confuses our |
91 | | -" simplistic IP address syntax processing here. |
| 95 | +" simplistic IP address syntax processing here. But I |
| 96 | +" do test for these corner-cases, in case. |
92 | 97 | " |
93 | 98 | " isident is used for the most-lax naming convention of |
94 | 99 | " all Bind identifiers combined. Those naming convention |
@@ -160,6 +165,7 @@ hi link namedHL_Hexidecimal namedHL_Number |
160 | 165 | hi link namedHL_Wildcard namedHL_Builtin |
161 | 166 | hi link namedHL_Base64 namedHL_Identifier " RFC 3548 |
162 | 167 | hi link namedHL_ACLName namedHL_Identifier |
| 168 | +hi link namedHL_Algorithm namedHL_Identifier |
163 | 169 | hi link namedHL_ClassName namedHL_Identifier |
164 | 170 | hi link namedHL_Filespec namedHL_Identifier |
165 | 171 | hi link namedHL_KeyName namedHL_Identifier |
@@ -858,7 +864,7 @@ syn match namedKeySecretValue contained /\<[0-9a-zA-Z\+\=\/]\{1,4099}\s*;/he=e-1 |
858 | 864 | hi link namedKeyName namedHL_KeyName |
859 | 865 | syn match namedKeyName contained /\<[0-9a-zA-Z\-_]\{1,63}/ skipwhite |
860 | 866 |
|
861 | | -hi link namedKeyAlgorithmName namedHL_String |
| 867 | +hi link namedKeyAlgorithmName namedHL_Algorithm |
862 | 868 | syn match namedKeyAlgorithmName contained /\<[0-9A-Za-z\-_]\{1,4096}/ skipwhite |
863 | 869 |
|
864 | 870 | hi link namedMasterName namedHL_MasterName |
@@ -965,9 +971,10 @@ syn match named_E_SuffixDomain_SC contained /\<[0-9A-Za-z\._\-]{1,1023}[A-Za-z\. |
965 | 971 | """"""""""""""""""""""""""""""""""""""""""""""""""""""""" |
966 | 972 | " Nesting of PATTERNS |
967 | 973 | """"""""""""""""""""""""""""""""""""""""""""""""""""""""" |
968 | | -""""" We are not ready for solid RED highlighting yet, too many errors |
| 974 | +" We'll do error RED highlighting on all statement firstly, then later on |
| 975 | +" all the options, then all the clauses. |
969 | 976 | hi link namedStmtKeywordUnknown namedHL_Error |
970 | | -syn match namedStmtKeywordUnknown /\<\S\{1,1111}\>/ |
| 977 | +syn match namedStmtKeywordUnknown /\<\S\{1,64}\>/ |
971 | 978 |
|
972 | 979 |
|
973 | 980 | hi link namedInclude namedHL_Include |
|
0 commit comments