-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathedge.tmLanguage.json
106 lines (106 loc) · 2.85 KB
/
edge.tmLanguage.json
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"name": "Edge",
"scopeName": "text.html.edge",
"injections": {
"text.html.edge - (meta.embedded | meta.tag | comment.block.edge), L:(text.html.edge meta.tag - (comment.block.edge | meta.embedded.block.edge)), L:(source.ts.embedded.html - (comment.block.edge | meta.embedded.block.edge))": {
"patterns": [
{
"include": "#comment"
},
{
"include": "#escapedMustache"
},
{
"include": "#safeMustache"
},
{
"include": "#mustache"
},
{
"include": "#nonSeekableTag"
},
{
"include": "#tag"
}
]
}
},
"repository": {
"comment": {
"begin": "\\{{--",
"end": "\\--}}",
"beginCaptures": {
"0": { "name": "punctuation.definition.comment.begin.edge" }
},
"endCaptures": {
"0": { "name": "punctuation.definition.comment.end.edge" }
},
"name": "comment.block"
},
"escapedMustache": {
"begin": "\\@{{",
"end": "\\}}",
"beginCaptures": {
"0": { "name": "punctuation.definition.comment.begin.edge" }
},
"endCaptures": {
"0": { "name": "punctuation.definition.comment.end.edge" }
},
"name": "comment.block"
},
"safeMustache": {
"begin": "\\{{{",
"end": "\\}}}",
"beginCaptures": {
"0": { "name": "punctuation.mustache.begin" }
},
"endCaptures": {
"0": { "name": "punctuation.mustache.end" }
},
"name": "meta.embedded.block.javascript",
"patterns": [{ "include": "source.ts#expression" }]
},
"mustache": {
"begin": "\\{{",
"end": "\\}}",
"beginCaptures": {
"0": { "name": "punctuation.mustache.begin" }
},
"endCaptures": {
"0": { "name": "punctuation.mustache.end" }
},
"name": "meta.embedded.block.javascript",
"patterns": [{ "include": "source.ts#expression" }]
},
"nonSeekableTag": {
"match": "^(\\s*)((@{1,2})(!)?([a-zA-Z._]+))(~)?$",
"captures": {
"2": { "name": "support.function.edge" }
},
"name": "meta.embedded.block.javascript",
"patterns": [{ "include": "source.ts#expression" }]
},
"tag": {
"begin": "^(\\s*)((@{1,2})(!)?([a-zA-Z._]+)(\\s{0,2}))(\\()",
"beginCaptures": {
"2": { "name": "support.function.edge" },
"7": { "name": "punctuation.paren.open" }
},
"end": "\\)",
"endCaptures": {
"0": { "name": "punctuation.paren.close" }
},
"name": "meta.embedded.block.javascript",
"patterns": [{ "include": "source.ts#expression" }]
}
},
"patterns": [
{
"include": "text.html.basic"
},
{
"include": "text.html.derivative"
}
]
}