Skip to content

Commit

Permalink
make TTL optional.
Browse files Browse the repository at this point in the history
TTL is optional; plus you may use the $TTL directive to set default TTL.

http://www.bind9.net/manual/bind/9.3.2/Bv9ARM.ch06.html#zone_statement_grammar
  • Loading branch information
dnozay committed May 1, 2014
1 parent aa8f99f commit a1333fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Bind Zone Files.json-tmlanguage
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
{ "match": "\\d+(H|h|D|d|W|w|M|m|Y|y)",
"name": "variable.other.timeunit.zone_file"
},
{ "begin": "([A-Za-z0-9_.-]*)\\s+([0-9A-Za-z]*)\\s+([I|i][N|n]\\s+[A-Za-z]+)\\s+(.*)\\(",
{ "begin": "([A-Za-z0-9_.-]*)\\s+(?:([0-9A-Za-z]*)\\s+)?([I|i][N|n]\\s+[A-Za-z]+)\\s+(.*)\\(",
"beginCaptures": {
"2": { "name": "variable.other.timeunit.zone_file"},
"3": { "name": "keyword.resourcetype.zone_file" },
Expand All @@ -32,7 +32,7 @@
"end": "\\)",
"name": "string.quoted.single.address.zone_file"
},
{ "match": "([A-Za-z0-9_.-]*)\\s+([0-9A-Za-z]*)\\s+([I|i][N|n]\\s+[A-Za-z]+)\\s+(.*)",
{ "match": "([A-Za-z0-9_.-]*)\\s+(?:([0-9A-Za-z]*)\\s+)?([I|i][N|n]\\s+[A-Za-z]+)\\s+(.*)",
"name": "string.quoted.single.address.zone_file",
"captures": {
"2": { "name": "variable.other.timeunit.zone_file"},
Expand Down

0 comments on commit a1333fe

Please sign in to comment.