From a1333fe9c6642440b7b9b354dffaf3c2663fd22c Mon Sep 17 00:00:00 2001 From: Damien Nozay Date: Thu, 1 May 2014 11:18:22 -0700 Subject: [PATCH] make TTL optional. 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 --- Bind Zone Files.json-tmlanguage | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Bind Zone Files.json-tmlanguage b/Bind Zone Files.json-tmlanguage index a0d33c6..fd80f68 100644 --- a/Bind Zone Files.json-tmlanguage +++ b/Bind Zone Files.json-tmlanguage @@ -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" }, @@ -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"},