-
Notifications
You must be signed in to change notification settings - Fork 8
/
Bind Zone Files.json-tmLanguage
45 lines (45 loc) · 1.61 KB
/
Bind Zone Files.json-tmLanguage
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{ "name": "Bind Zone Files",
"scopeName": "text.zone_file",
"fileTypes": ["zone", "db"],
"patterns": [
{ "match": ";.*",
"name": "comment.line.semicolon.zone_file"
},
{ "match": "@",
"name": "keyword.directive.zone_file"
},
{ "match": "\\$(ORIGIN|origin|TTL|ttl|INCLUDE|include)\\s*([^;]*)(;.*)?",
"name": "keyword.directive.zone_file",
"captures": {
"2": { "name": "variable.other.directive.zone_file" },
"3": { "name": "comment.line.semicolon.zone_file" }
}
},
{ "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-z0-9]+)\\s+(.*)\\(",
"beginCaptures": {
"2": { "name": "variable.other.timeunit.zone_file"},
"3": { "name": "keyword.resourcetype.zone_file" },
"4": { "name": "string.quoted.single.resource.address.zone_file" }
},
"patterns": [
{ "match": ";.*",
"name": "comment.line.semicolon.zone_file"
}
],
"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-z0-9]+)\\s+(.*)",
"name": "string.quoted.single.address.zone_file",
"captures": {
"2": { "name": "variable.other.timeunit.zone_file"},
"3": { "name": "keyword.resourcetype.zone_file" },
"4": { "name": "string.quoted.single.resource.address.zone_file" }
}
}
],
"uuid": "e7258f23-3f2a-4b03-80e1-ac8990b47a6d"
}