Skip to content

Commit

Permalink
Merge pull request #18 from cmur2/master
Browse files Browse the repository at this point in the history
Support resource record types with names containing numbers
  • Loading branch information
sixty4k authored Nov 30, 2018
2 parents c17e09f + 14d9e46 commit 9768a7e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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-z0-9]+)\\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-z0-9]+)\\s+(.*)",
"name": "string.quoted.single.address.zone_file",
"captures": {
"2": { "name": "variable.other.timeunit.zone_file"},
Expand Down
4 changes: 2 additions & 2 deletions Bind Zone Files.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
</dict>
<dict>
<key>begin</key>
<string>([A-Za-z0-9_.-]*)\s+(?:([0-9A-Za-z]*)\s+)?([I|i][N|n]\s+[A-Za-z]+)\s+(.*)\(</string>
<string>([A-Za-z0-9_.-]*)\s+(?:([0-9A-Za-z]*)\s+)?([I|i][N|n]\s+[A-Za-z0-9]+)\s+(.*)\(</string>
<key>beginCaptures</key>
<dict>
<key>2</key>
Expand Down Expand Up @@ -103,7 +103,7 @@
</dict>
</dict>
<key>match</key>
<string>([A-Za-z0-9_.-]*)\s+(?:([0-9A-Za-z]*)\s+)?([I|i][N|n]\s+[A-Za-z]+)\s+(.*)</string>
<string>([A-Za-z0-9_.-]*)\s+(?:([0-9A-Za-z]*)\s+)?([I|i][N|n]\s+[A-Za-z0-9]+)\s+(.*)</string>
<key>name</key>
<string>string.quoted.single.address.zone_file</string>
</dict>
Expand Down

0 comments on commit 9768a7e

Please sign in to comment.