github-linguist 6.0.0 → 6.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/grammars/source.ballerina.json +1 -1
- data/grammars/source.elm.json +375 -0
- data/grammars/source.gfm.json +3 -1
- data/grammars/source.modelica.json +4 -0
- data/grammars/source.nextflow-groovy.json +0 -1
- data/grammars/source.nextflow.json +55 -35
- data/grammars/source.python.json +125 -125
- data/grammars/source.regexp.python.json +15 -15
- data/grammars/source.rexx.json +1 -1
- data/grammars/source.sas.json +2 -2
- data/grammars/source.solidity.json +1 -1
- data/grammars/source.ts.json +141 -141
- data/grammars/source.tsx.json +4185 -184
- data/grammars/text.html.mediawiki.elm-build-output.json +97 -0
- data/grammars/text.html.mediawiki.elm-documentation.json +17 -0
- data/grammars/text.html.vue.json +925 -0
- data/lib/linguist/version.rb +1 -1
- metadata +6 -2
@@ -0,0 +1,97 @@
|
|
1
|
+
{
|
2
|
+
"name": "Elm Compile Messages",
|
3
|
+
"scopeName": "text.html.mediawiki.elm-build-output",
|
4
|
+
"patterns": [
|
5
|
+
{
|
6
|
+
"name": "comment.line.heading.3.elm-build-output",
|
7
|
+
"begin": "^(::) ",
|
8
|
+
"end": "^\\n$",
|
9
|
+
"patterns": [
|
10
|
+
{
|
11
|
+
"name": "markup.underline.link.elm-build-output",
|
12
|
+
"match": "\\S+[/\\.]\\S+"
|
13
|
+
},
|
14
|
+
{
|
15
|
+
"name": "constant.language.boolean.true.elm-build-output",
|
16
|
+
"match": "(?i)\\bsuccess\\w+"
|
17
|
+
}
|
18
|
+
]
|
19
|
+
},
|
20
|
+
{
|
21
|
+
"name": "meta.report.elm-build-output",
|
22
|
+
"contentName": "string.unquoted.elm-build-output",
|
23
|
+
"begin": "(?x) # Minimally modified `file_regex` from `Elm Make.sublime-build`\n ^\\-\\-[ ] # Leading delimiter\n ((error) # \\2: error\n |(warning) # \\3: warning\n |\\w+ # \\1: any $type\n )[:][ ] # separator\n (.+) # \\4: tag\n [ ][-][ ] # separator\n (.+?): # \\5: $file\n (\\d+): # \\6: $line\n (\\d+) # \\7: $column\n \\n$ # End",
|
24
|
+
"end": "^\\n$",
|
25
|
+
"patterns": [
|
26
|
+
{
|
27
|
+
"name": "markup.raw.inline.elm-build-output",
|
28
|
+
"contentName": "variable.other.elm.elm-build-output",
|
29
|
+
"begin": "(`)(?!`)",
|
30
|
+
"end": "\\1",
|
31
|
+
"captures": {
|
32
|
+
"0": {
|
33
|
+
"name": "punctuation.definition.raw.elm-build-output"
|
34
|
+
}
|
35
|
+
}
|
36
|
+
},
|
37
|
+
{
|
38
|
+
"name": "markup.raw.block.elm-build-output",
|
39
|
+
"begin": "(?m)^ {4}",
|
40
|
+
"end": "\\n+(?!^ {4})",
|
41
|
+
"patterns": [
|
42
|
+
{
|
43
|
+
"include": "source.elm"
|
44
|
+
}
|
45
|
+
]
|
46
|
+
}
|
47
|
+
],
|
48
|
+
"beginCaptures": {
|
49
|
+
"0": {
|
50
|
+
"name": "markup.heading.4.elm-build-output"
|
51
|
+
},
|
52
|
+
"1": {
|
53
|
+
"name": "support.constant.type.elm-build-output"
|
54
|
+
},
|
55
|
+
"2": {
|
56
|
+
"name": "invalid.illegal.error.elm-build-output"
|
57
|
+
},
|
58
|
+
"3": {
|
59
|
+
"name": "invalid.deprecated.warning.elm-build-output"
|
60
|
+
},
|
61
|
+
"4": {
|
62
|
+
"name": "support.constant.type.elm-build-output"
|
63
|
+
},
|
64
|
+
"5": {
|
65
|
+
"name": "markup.underline.link.elm-build-output"
|
66
|
+
},
|
67
|
+
"6": {
|
68
|
+
"name": "constant.numeric.elm-build-output"
|
69
|
+
},
|
70
|
+
"7": {
|
71
|
+
"name": "constant.numeric.elm-build-output"
|
72
|
+
}
|
73
|
+
},
|
74
|
+
"endCaptures": {
|
75
|
+
"0": {
|
76
|
+
"name": "meta.separator.elm-build-output"
|
77
|
+
}
|
78
|
+
}
|
79
|
+
},
|
80
|
+
{
|
81
|
+
"name": "comment.line.brackets.elm-build-output",
|
82
|
+
"begin": "^\\[",
|
83
|
+
"end": "\\]$",
|
84
|
+
"patterns": [
|
85
|
+
{
|
86
|
+
"name": "constant.numeric.elm-build-output",
|
87
|
+
"match": "\\b\\d+\\.\\d+(s)\\b",
|
88
|
+
"captures": {
|
89
|
+
"1": {
|
90
|
+
"name": "keyword.other.unit.elm-build-output"
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
]
|
95
|
+
}
|
96
|
+
]
|
97
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
{
|
2
|
+
"name": "Elm Documentation",
|
3
|
+
"scopeName": "text.html.mediawiki.elm-documentation",
|
4
|
+
"patterns": [
|
5
|
+
{
|
6
|
+
"name": "markup.raw.block.elm-documentation",
|
7
|
+
"contentName": "markup.raw.block.elm-documentation",
|
8
|
+
"begin": "\\x{FEFF}",
|
9
|
+
"end": "\\x{FEFF}",
|
10
|
+
"patterns": [
|
11
|
+
{
|
12
|
+
"include": "source.elm"
|
13
|
+
}
|
14
|
+
]
|
15
|
+
}
|
16
|
+
]
|
17
|
+
}
|
@@ -0,0 +1,925 @@
|
|
1
|
+
{
|
2
|
+
"name": "Vue Component",
|
3
|
+
"scopeName": "text.html.vue",
|
4
|
+
"patterns": [
|
5
|
+
{
|
6
|
+
"include": "#vue-interpolations"
|
7
|
+
},
|
8
|
+
{
|
9
|
+
"name": "meta.tag.any.html",
|
10
|
+
"begin": "(\u003c)([a-zA-Z0-9:-]++)(?=[^\u003e]*\u003e\u003c/\\2\u003e)",
|
11
|
+
"end": "(\u003e)(\u003c)(/)(\\2)(\u003e)",
|
12
|
+
"patterns": [
|
13
|
+
{
|
14
|
+
"include": "#tag-stuff"
|
15
|
+
}
|
16
|
+
],
|
17
|
+
"beginCaptures": {
|
18
|
+
"1": {
|
19
|
+
"name": "punctuation.definition.tag.begin.html"
|
20
|
+
},
|
21
|
+
"2": {
|
22
|
+
"name": "entity.name.tag.html"
|
23
|
+
}
|
24
|
+
},
|
25
|
+
"endCaptures": {
|
26
|
+
"1": {
|
27
|
+
"name": "punctuation.definition.tag.end.html"
|
28
|
+
},
|
29
|
+
"2": {
|
30
|
+
"name": "punctuation.definition.tag.begin.html meta.scope.between-tag-pair.html"
|
31
|
+
},
|
32
|
+
"3": {
|
33
|
+
"name": "punctuation.definition.tag.begin.html"
|
34
|
+
},
|
35
|
+
"4": {
|
36
|
+
"name": "entity.name.tag.html"
|
37
|
+
},
|
38
|
+
"5": {
|
39
|
+
"name": "punctuation.definition.tag.end.html"
|
40
|
+
}
|
41
|
+
}
|
42
|
+
},
|
43
|
+
{
|
44
|
+
"name": "meta.tag.preprocessor.xml.html",
|
45
|
+
"begin": "(\u003c\\?)(xml)",
|
46
|
+
"end": "(\\?\u003e)",
|
47
|
+
"patterns": [
|
48
|
+
{
|
49
|
+
"include": "#tag-generic-attribute"
|
50
|
+
},
|
51
|
+
{
|
52
|
+
"include": "#string-double-quoted"
|
53
|
+
},
|
54
|
+
{
|
55
|
+
"include": "#string-single-quoted"
|
56
|
+
}
|
57
|
+
],
|
58
|
+
"captures": {
|
59
|
+
"1": {
|
60
|
+
"name": "punctuation.definition.tag.html"
|
61
|
+
},
|
62
|
+
"2": {
|
63
|
+
"name": "entity.name.tag.xml.html"
|
64
|
+
}
|
65
|
+
}
|
66
|
+
},
|
67
|
+
{
|
68
|
+
"name": "comment.block.html",
|
69
|
+
"begin": "\u003c!--",
|
70
|
+
"end": "--\\s*\u003e",
|
71
|
+
"patterns": [
|
72
|
+
{
|
73
|
+
"name": "invalid.illegal.bad-comments-or-CDATA.html",
|
74
|
+
"match": "--"
|
75
|
+
}
|
76
|
+
],
|
77
|
+
"captures": {
|
78
|
+
"0": {
|
79
|
+
"name": "punctuation.definition.comment.html"
|
80
|
+
}
|
81
|
+
}
|
82
|
+
},
|
83
|
+
{
|
84
|
+
"name": "meta.tag.sgml.html",
|
85
|
+
"begin": "\u003c!",
|
86
|
+
"end": "\u003e",
|
87
|
+
"patterns": [
|
88
|
+
{
|
89
|
+
"name": "meta.tag.sgml.doctype.html",
|
90
|
+
"begin": "(?i:DOCTYPE)",
|
91
|
+
"end": "(?=\u003e)",
|
92
|
+
"patterns": [
|
93
|
+
{
|
94
|
+
"name": "string.quoted.double.doctype.identifiers-and-DTDs.html",
|
95
|
+
"match": "\"[^\"\u003e]*\""
|
96
|
+
}
|
97
|
+
],
|
98
|
+
"captures": {
|
99
|
+
"1": {
|
100
|
+
"name": "entity.name.tag.doctype.html"
|
101
|
+
}
|
102
|
+
}
|
103
|
+
},
|
104
|
+
{
|
105
|
+
"name": "constant.other.inline-data.html",
|
106
|
+
"begin": "\\[CDATA\\[",
|
107
|
+
"end": "]](?=\u003e)"
|
108
|
+
},
|
109
|
+
{
|
110
|
+
"name": "invalid.illegal.bad-comments-or-CDATA.html",
|
111
|
+
"match": "(\\s*)(?!--|\u003e)\\S(\\s*)"
|
112
|
+
}
|
113
|
+
],
|
114
|
+
"captures": {
|
115
|
+
"0": {
|
116
|
+
"name": "punctuation.definition.tag.html"
|
117
|
+
}
|
118
|
+
}
|
119
|
+
},
|
120
|
+
{
|
121
|
+
"name": "text.slm.embedded.html",
|
122
|
+
"begin": "(?:^\\s+)?(\u003c)((?i:template))\\b(?=[^\u003e]*lang=(['\"])slm\\1?)",
|
123
|
+
"end": "(\u003c/)((?i:template))(\u003e)(?:\\s*\\n)?",
|
124
|
+
"patterns": [
|
125
|
+
{
|
126
|
+
"include": "#tag-stuff"
|
127
|
+
},
|
128
|
+
{
|
129
|
+
"begin": "(\u003e)",
|
130
|
+
"end": "(?=\u003c/(?i:template))",
|
131
|
+
"patterns": [
|
132
|
+
{}
|
133
|
+
],
|
134
|
+
"beginCaptures": {
|
135
|
+
"1": {
|
136
|
+
"name": "punctuation.definition.tag.end.html"
|
137
|
+
}
|
138
|
+
}
|
139
|
+
}
|
140
|
+
],
|
141
|
+
"captures": {
|
142
|
+
"1": {
|
143
|
+
"name": "punctuation.definition.tag.begin.html"
|
144
|
+
},
|
145
|
+
"2": {
|
146
|
+
"name": "entity.name.tag.style.html"
|
147
|
+
},
|
148
|
+
"3": {
|
149
|
+
"name": "punctuation.definition.tag.html"
|
150
|
+
}
|
151
|
+
}
|
152
|
+
},
|
153
|
+
{
|
154
|
+
"name": "text.jade.embedded.html",
|
155
|
+
"begin": "(?:^\\s+)?(\u003c)((?i:template))\\b(?=[^\u003e]*lang=(['\"])jade\\1?)",
|
156
|
+
"end": "(\u003c/)((?i:template))(\u003e)(?:\\s*\\n)?",
|
157
|
+
"patterns": [
|
158
|
+
{
|
159
|
+
"include": "#tag-stuff"
|
160
|
+
},
|
161
|
+
{
|
162
|
+
"begin": "(\u003e)",
|
163
|
+
"end": "(?=\u003c/(?i:template))",
|
164
|
+
"patterns": [
|
165
|
+
{
|
166
|
+
"include": "text.jade"
|
167
|
+
}
|
168
|
+
],
|
169
|
+
"beginCaptures": {
|
170
|
+
"1": {
|
171
|
+
"name": "punctuation.definition.tag.end.html"
|
172
|
+
}
|
173
|
+
}
|
174
|
+
}
|
175
|
+
],
|
176
|
+
"captures": {
|
177
|
+
"1": {
|
178
|
+
"name": "punctuation.definition.tag.begin.html"
|
179
|
+
},
|
180
|
+
"2": {
|
181
|
+
"name": "entity.name.tag.style.html"
|
182
|
+
},
|
183
|
+
"3": {
|
184
|
+
"name": "punctuation.definition.tag.html"
|
185
|
+
}
|
186
|
+
}
|
187
|
+
},
|
188
|
+
{
|
189
|
+
"name": "text.pug.embedded.html",
|
190
|
+
"begin": "(?:^\\s+)?(\u003c)((?i:template))\\b(?=[^\u003e]*lang=(['\"])pug\\1?)",
|
191
|
+
"end": "(\u003c/)((?i:template))(\u003e)(?:\\s*\\n)?",
|
192
|
+
"patterns": [
|
193
|
+
{
|
194
|
+
"include": "#tag-stuff"
|
195
|
+
},
|
196
|
+
{
|
197
|
+
"begin": "(\u003e)",
|
198
|
+
"end": "(?=\u003c/(?i:template))",
|
199
|
+
"patterns": [
|
200
|
+
{}
|
201
|
+
],
|
202
|
+
"beginCaptures": {
|
203
|
+
"1": {
|
204
|
+
"name": "punctuation.definition.tag.end.html"
|
205
|
+
}
|
206
|
+
}
|
207
|
+
}
|
208
|
+
],
|
209
|
+
"captures": {
|
210
|
+
"1": {
|
211
|
+
"name": "punctuation.definition.tag.begin.html"
|
212
|
+
},
|
213
|
+
"2": {
|
214
|
+
"name": "entity.name.tag.style.html"
|
215
|
+
},
|
216
|
+
"3": {
|
217
|
+
"name": "punctuation.definition.tag.html"
|
218
|
+
}
|
219
|
+
}
|
220
|
+
},
|
221
|
+
{
|
222
|
+
"name": "source.stylus.embedded.html",
|
223
|
+
"begin": "(?:^\\s+)?(\u003c)((?i:style))\\b(?=[^\u003e]*lang=(['\"])stylus\\1?)",
|
224
|
+
"end": "(\u003c/)((?i:style))(\u003e)(?:\\s*\\n)?",
|
225
|
+
"patterns": [
|
226
|
+
{
|
227
|
+
"include": "#tag-stuff"
|
228
|
+
},
|
229
|
+
{
|
230
|
+
"begin": "(\u003e)",
|
231
|
+
"end": "(?=\u003c/(?i:style))",
|
232
|
+
"patterns": [
|
233
|
+
{
|
234
|
+
"include": "source.stylus"
|
235
|
+
}
|
236
|
+
],
|
237
|
+
"beginCaptures": {
|
238
|
+
"1": {
|
239
|
+
"name": "punctuation.definition.tag.end.html"
|
240
|
+
}
|
241
|
+
}
|
242
|
+
}
|
243
|
+
],
|
244
|
+
"captures": {
|
245
|
+
"1": {
|
246
|
+
"name": "punctuation.definition.tag.begin.html"
|
247
|
+
},
|
248
|
+
"2": {
|
249
|
+
"name": "entity.name.tag.style.html"
|
250
|
+
},
|
251
|
+
"3": {
|
252
|
+
"name": "punctuation.definition.tag.html"
|
253
|
+
}
|
254
|
+
}
|
255
|
+
},
|
256
|
+
{
|
257
|
+
"name": "source.postcss.embedded.html",
|
258
|
+
"begin": "(?:^\\s+)?(\u003c)((?i:style))\\b(?=[^\u003e]*lang=(['\"])postcss\\1?)",
|
259
|
+
"end": "(\u003c/)((?i:style))(\u003e)(?:\\s*\\n)?",
|
260
|
+
"patterns": [
|
261
|
+
{
|
262
|
+
"include": "#tag-stuff"
|
263
|
+
},
|
264
|
+
{
|
265
|
+
"begin": "(\u003e)",
|
266
|
+
"end": "(?=\u003c/(?i:style))",
|
267
|
+
"patterns": [
|
268
|
+
{
|
269
|
+
"include": "source.postcss"
|
270
|
+
}
|
271
|
+
],
|
272
|
+
"beginCaptures": {
|
273
|
+
"1": {
|
274
|
+
"name": "punctuation.definition.tag.end.html"
|
275
|
+
}
|
276
|
+
}
|
277
|
+
}
|
278
|
+
],
|
279
|
+
"captures": {
|
280
|
+
"1": {
|
281
|
+
"name": "punctuation.definition.tag.begin.html"
|
282
|
+
},
|
283
|
+
"2": {
|
284
|
+
"name": "entity.name.tag.style.html"
|
285
|
+
},
|
286
|
+
"3": {
|
287
|
+
"name": "punctuation.definition.tag.html"
|
288
|
+
}
|
289
|
+
}
|
290
|
+
},
|
291
|
+
{
|
292
|
+
"name": "source.sass.embedded.html",
|
293
|
+
"begin": "(?:^\\s+)?(\u003c)((?i:style))\\b(?=[^\u003e]*lang=(['\"])sass\\1?)",
|
294
|
+
"end": "(\u003c/)((?i:style))(\u003e)(?:\\s*\\n)?",
|
295
|
+
"patterns": [
|
296
|
+
{
|
297
|
+
"include": "#tag-stuff"
|
298
|
+
},
|
299
|
+
{
|
300
|
+
"begin": "(\u003e)",
|
301
|
+
"end": "(?=\u003c/(?i:style))",
|
302
|
+
"patterns": [
|
303
|
+
{
|
304
|
+
"include": "source.sass"
|
305
|
+
},
|
306
|
+
{
|
307
|
+
"include": "source.scss"
|
308
|
+
}
|
309
|
+
],
|
310
|
+
"beginCaptures": {
|
311
|
+
"1": {
|
312
|
+
"name": "punctuation.definition.tag.end.html"
|
313
|
+
}
|
314
|
+
}
|
315
|
+
}
|
316
|
+
],
|
317
|
+
"captures": {
|
318
|
+
"1": {
|
319
|
+
"name": "punctuation.definition.tag.begin.html"
|
320
|
+
},
|
321
|
+
"2": {
|
322
|
+
"name": "entity.name.tag.style.html"
|
323
|
+
},
|
324
|
+
"3": {
|
325
|
+
"name": "punctuation.definition.tag.html"
|
326
|
+
}
|
327
|
+
}
|
328
|
+
},
|
329
|
+
{
|
330
|
+
"name": "source.scss.embedded.html",
|
331
|
+
"begin": "(?:^\\s+)?(\u003c)((?i:style))\\b(?=[^\u003e]*lang=(['\"])scss\\1?)",
|
332
|
+
"end": "(\u003c/)((?i:style))(\u003e)(?:\\s*\\n)?",
|
333
|
+
"patterns": [
|
334
|
+
{
|
335
|
+
"include": "#tag-stuff"
|
336
|
+
},
|
337
|
+
{
|
338
|
+
"begin": "(\u003e)",
|
339
|
+
"end": "(?=\u003c/(?i:style))",
|
340
|
+
"patterns": [
|
341
|
+
{
|
342
|
+
"include": "source.sass"
|
343
|
+
},
|
344
|
+
{
|
345
|
+
"include": "source.scss"
|
346
|
+
}
|
347
|
+
],
|
348
|
+
"beginCaptures": {
|
349
|
+
"1": {
|
350
|
+
"name": "punctuation.definition.tag.end.html"
|
351
|
+
}
|
352
|
+
}
|
353
|
+
}
|
354
|
+
],
|
355
|
+
"captures": {
|
356
|
+
"1": {
|
357
|
+
"name": "punctuation.definition.tag.begin.html"
|
358
|
+
},
|
359
|
+
"2": {
|
360
|
+
"name": "entity.name.tag.style.html"
|
361
|
+
},
|
362
|
+
"3": {
|
363
|
+
"name": "punctuation.definition.tag.html"
|
364
|
+
}
|
365
|
+
}
|
366
|
+
},
|
367
|
+
{
|
368
|
+
"name": "source.less.embedded.html",
|
369
|
+
"begin": "(?:^\\s+)?(\u003c)((?i:style))\\b(?=[^\u003e]*lang=(['\"])less\\1?)",
|
370
|
+
"end": "(\u003c/)((?i:style))(\u003e)(?:\\s*\\n)?",
|
371
|
+
"patterns": [
|
372
|
+
{
|
373
|
+
"include": "#tag-stuff"
|
374
|
+
},
|
375
|
+
{
|
376
|
+
"begin": "(\u003e)",
|
377
|
+
"end": "(?=\u003c/(?i:style))",
|
378
|
+
"patterns": [
|
379
|
+
{
|
380
|
+
"include": "source.css.less"
|
381
|
+
}
|
382
|
+
],
|
383
|
+
"beginCaptures": {
|
384
|
+
"1": {
|
385
|
+
"name": "punctuation.definition.tag.end.html"
|
386
|
+
}
|
387
|
+
}
|
388
|
+
}
|
389
|
+
],
|
390
|
+
"captures": {
|
391
|
+
"1": {
|
392
|
+
"name": "punctuation.definition.tag.begin.html"
|
393
|
+
},
|
394
|
+
"2": {
|
395
|
+
"name": "entity.name.tag.style.html"
|
396
|
+
},
|
397
|
+
"3": {
|
398
|
+
"name": "punctuation.definition.tag.html"
|
399
|
+
}
|
400
|
+
}
|
401
|
+
},
|
402
|
+
{
|
403
|
+
"name": "source.css.embedded.html",
|
404
|
+
"begin": "(?:^\\s+)?(\u003c)((?i:style))\\b(?![^\u003e]*/\u003e)",
|
405
|
+
"end": "(\u003c/)((?i:style))(\u003e)(?:\\s*\\n)?",
|
406
|
+
"patterns": [
|
407
|
+
{
|
408
|
+
"include": "#tag-stuff"
|
409
|
+
},
|
410
|
+
{
|
411
|
+
"begin": "(\u003e)",
|
412
|
+
"end": "(?=\u003c/(?i:style))",
|
413
|
+
"patterns": [
|
414
|
+
{
|
415
|
+
"include": "source.css"
|
416
|
+
}
|
417
|
+
],
|
418
|
+
"beginCaptures": {
|
419
|
+
"1": {
|
420
|
+
"name": "punctuation.definition.tag.end.html"
|
421
|
+
}
|
422
|
+
}
|
423
|
+
}
|
424
|
+
],
|
425
|
+
"captures": {
|
426
|
+
"1": {
|
427
|
+
"name": "punctuation.definition.tag.begin.html"
|
428
|
+
},
|
429
|
+
"2": {
|
430
|
+
"name": "entity.name.tag.style.html"
|
431
|
+
},
|
432
|
+
"3": {
|
433
|
+
"name": "punctuation.definition.tag.html"
|
434
|
+
}
|
435
|
+
}
|
436
|
+
},
|
437
|
+
{
|
438
|
+
"name": "source.coffee.embedded.html",
|
439
|
+
"begin": "(?:^\\s+)?(\u003c)((?i:script))\\b(?=[^\u003e]*lang=(['\"])coffee\\1?)",
|
440
|
+
"end": "(?\u003c=\u003c/(script|SCRIPT))(\u003e)(?:\\s*\\n)?",
|
441
|
+
"patterns": [
|
442
|
+
{
|
443
|
+
"include": "#tag-stuff"
|
444
|
+
},
|
445
|
+
{
|
446
|
+
"begin": "(?\u003c!\u003c/(?:script|SCRIPT))(\u003e)",
|
447
|
+
"end": "(\u003c/)((?i:script))",
|
448
|
+
"patterns": [
|
449
|
+
{
|
450
|
+
"include": "source.coffee"
|
451
|
+
}
|
452
|
+
],
|
453
|
+
"captures": {
|
454
|
+
"1": {
|
455
|
+
"name": "punctuation.definition.tag.begin.html"
|
456
|
+
},
|
457
|
+
"2": {
|
458
|
+
"name": "entity.name.tag.script.html"
|
459
|
+
}
|
460
|
+
}
|
461
|
+
}
|
462
|
+
],
|
463
|
+
"beginCaptures": {
|
464
|
+
"1": {
|
465
|
+
"name": "punctuation.definition.tag.begin.html"
|
466
|
+
},
|
467
|
+
"2": {
|
468
|
+
"name": "entity.name.tag.script.html"
|
469
|
+
}
|
470
|
+
},
|
471
|
+
"endCaptures": {
|
472
|
+
"2": {
|
473
|
+
"name": "punctuation.definition.tag.html"
|
474
|
+
}
|
475
|
+
}
|
476
|
+
},
|
477
|
+
{
|
478
|
+
"name": "source.livescript.embedded.html",
|
479
|
+
"begin": "(?:^\\s+)?(\u003c)((?i:script))\\b(?=[^\u003e]*lang=(['\"])livescript\\1?)",
|
480
|
+
"end": "(?\u003c=\u003c/(script|SCRIPT))(\u003e)(?:\\s*\\n)?",
|
481
|
+
"patterns": [
|
482
|
+
{
|
483
|
+
"include": "#tag-stuff"
|
484
|
+
},
|
485
|
+
{
|
486
|
+
"begin": "(?\u003c!\u003c/(?:script|SCRIPT))(\u003e)",
|
487
|
+
"end": "(\u003c/)((?i:script))",
|
488
|
+
"patterns": [
|
489
|
+
{
|
490
|
+
"include": "source.livescript"
|
491
|
+
}
|
492
|
+
],
|
493
|
+
"captures": {
|
494
|
+
"1": {
|
495
|
+
"name": "punctuation.definition.tag.begin.html"
|
496
|
+
},
|
497
|
+
"2": {
|
498
|
+
"name": "entity.name.tag.script.html"
|
499
|
+
}
|
500
|
+
}
|
501
|
+
}
|
502
|
+
],
|
503
|
+
"beginCaptures": {
|
504
|
+
"1": {
|
505
|
+
"name": "punctuation.definition.tag.begin.html"
|
506
|
+
},
|
507
|
+
"2": {
|
508
|
+
"name": "entity.name.tag.script.html"
|
509
|
+
}
|
510
|
+
},
|
511
|
+
"endCaptures": {
|
512
|
+
"2": {
|
513
|
+
"name": "punctuation.definition.tag.html"
|
514
|
+
}
|
515
|
+
}
|
516
|
+
},
|
517
|
+
{
|
518
|
+
"name": "source.js.embedded.html",
|
519
|
+
"begin": "(\u003c)((?i:script))\\b(?![^\u003e]*/\u003e)(?![^\u003e]*(?i:type.?=.?text/((?!javascript|babel|ecmascript).*)))",
|
520
|
+
"end": "(?\u003c=\u003c/(script|SCRIPT))(\u003e)(?:\\s*\\n)?",
|
521
|
+
"patterns": [
|
522
|
+
{
|
523
|
+
"include": "#tag-stuff"
|
524
|
+
},
|
525
|
+
{
|
526
|
+
"begin": "(?\u003c!\u003c/(?:script|SCRIPT))(\u003e)",
|
527
|
+
"end": "(\u003c/)((?i:script))",
|
528
|
+
"patterns": [
|
529
|
+
{
|
530
|
+
"name": "comment.line.double-slash.js",
|
531
|
+
"match": "(//).*?((?=\u003c/script)|$\\n?)",
|
532
|
+
"captures": {
|
533
|
+
"1": {
|
534
|
+
"name": "punctuation.definition.comment.js"
|
535
|
+
}
|
536
|
+
}
|
537
|
+
},
|
538
|
+
{
|
539
|
+
"name": "comment.block.js",
|
540
|
+
"begin": "/\\*",
|
541
|
+
"end": "\\*/|(?=\u003c/script)",
|
542
|
+
"captures": {
|
543
|
+
"0": {
|
544
|
+
"name": "punctuation.definition.comment.js"
|
545
|
+
}
|
546
|
+
}
|
547
|
+
},
|
548
|
+
{
|
549
|
+
"include": "source.js"
|
550
|
+
}
|
551
|
+
],
|
552
|
+
"captures": {
|
553
|
+
"1": {
|
554
|
+
"name": "punctuation.definition.tag.begin.html"
|
555
|
+
},
|
556
|
+
"2": {
|
557
|
+
"name": "entity.name.tag.script.html"
|
558
|
+
}
|
559
|
+
}
|
560
|
+
}
|
561
|
+
],
|
562
|
+
"beginCaptures": {
|
563
|
+
"1": {
|
564
|
+
"name": "punctuation.definition.tag.begin.html"
|
565
|
+
},
|
566
|
+
"2": {
|
567
|
+
"name": "entity.name.tag.script.html"
|
568
|
+
}
|
569
|
+
},
|
570
|
+
"endCaptures": {
|
571
|
+
"2": {
|
572
|
+
"name": "punctuation.definition.tag.html"
|
573
|
+
}
|
574
|
+
}
|
575
|
+
},
|
576
|
+
{
|
577
|
+
"name": "meta.tag.structure.any.html",
|
578
|
+
"begin": "(\u003c/?)((?i:body|head|html)\\b)",
|
579
|
+
"end": "(\u003e)",
|
580
|
+
"patterns": [
|
581
|
+
{
|
582
|
+
"include": "#tag-stuff"
|
583
|
+
}
|
584
|
+
],
|
585
|
+
"captures": {
|
586
|
+
"1": {
|
587
|
+
"name": "punctuation.definition.tag.begin.html"
|
588
|
+
},
|
589
|
+
"2": {
|
590
|
+
"name": "entity.name.tag.structure.any.html"
|
591
|
+
}
|
592
|
+
},
|
593
|
+
"endCaptures": {
|
594
|
+
"1": {
|
595
|
+
"name": "punctuation.definition.tag.end.html"
|
596
|
+
}
|
597
|
+
}
|
598
|
+
},
|
599
|
+
{
|
600
|
+
"name": "meta.tag.block.any.html",
|
601
|
+
"begin": "(\u003c/?)((?i:address|blockquote|dd|div|dl|dt|fieldset|form|frame|frameset|h1|h2|h3|h4|h5|h6|iframe|noframes|object|ol|p|ul|applet|center|dir|hr|menu|pre)\\b)",
|
602
|
+
"end": "(\u003e)",
|
603
|
+
"patterns": [
|
604
|
+
{
|
605
|
+
"include": "#tag-stuff"
|
606
|
+
}
|
607
|
+
],
|
608
|
+
"beginCaptures": {
|
609
|
+
"1": {
|
610
|
+
"name": "punctuation.definition.tag.begin.html"
|
611
|
+
},
|
612
|
+
"2": {
|
613
|
+
"name": "entity.name.tag.block.any.html"
|
614
|
+
}
|
615
|
+
},
|
616
|
+
"endCaptures": {
|
617
|
+
"1": {
|
618
|
+
"name": "punctuation.definition.tag.end.html"
|
619
|
+
}
|
620
|
+
}
|
621
|
+
},
|
622
|
+
{
|
623
|
+
"name": "meta.tag.inline.any.html",
|
624
|
+
"begin": "(\u003c/?)((?i:a|abbr|acronym|area|b|base|basefont|bdo|big|br|button|caption|cite|code|col|colgroup|del|dfn|em|font|head|html|i|img|input|ins|isindex|kbd|label|legend|li|link|map|meta|noscript|optgroup|option|param|q|s|samp|script|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|var)\\b)",
|
625
|
+
"end": "((?: ?/)?\u003e)",
|
626
|
+
"patterns": [
|
627
|
+
{
|
628
|
+
"include": "#tag-stuff"
|
629
|
+
}
|
630
|
+
],
|
631
|
+
"beginCaptures": {
|
632
|
+
"1": {
|
633
|
+
"name": "punctuation.definition.tag.begin.html"
|
634
|
+
},
|
635
|
+
"2": {
|
636
|
+
"name": "entity.name.tag.inline.any.html"
|
637
|
+
}
|
638
|
+
},
|
639
|
+
"endCaptures": {
|
640
|
+
"1": {
|
641
|
+
"name": "punctuation.definition.tag.end.html"
|
642
|
+
}
|
643
|
+
}
|
644
|
+
},
|
645
|
+
{
|
646
|
+
"name": "meta.tag.other.html",
|
647
|
+
"begin": "(\u003c/?)([a-zA-Z0-9:-]+)",
|
648
|
+
"end": "(\u003e)",
|
649
|
+
"patterns": [
|
650
|
+
{
|
651
|
+
"include": "#tag-stuff"
|
652
|
+
}
|
653
|
+
],
|
654
|
+
"beginCaptures": {
|
655
|
+
"1": {
|
656
|
+
"name": "punctuation.definition.tag.begin.html"
|
657
|
+
},
|
658
|
+
"2": {
|
659
|
+
"name": "entity.name.tag.other.html"
|
660
|
+
}
|
661
|
+
},
|
662
|
+
"endCaptures": {
|
663
|
+
"1": {
|
664
|
+
"name": "punctuation.definition.tag.end.html"
|
665
|
+
}
|
666
|
+
}
|
667
|
+
},
|
668
|
+
{
|
669
|
+
"include": "#entities"
|
670
|
+
},
|
671
|
+
{
|
672
|
+
"name": "invalid.illegal.incomplete.html",
|
673
|
+
"match": "\u003c\u003e"
|
674
|
+
},
|
675
|
+
{
|
676
|
+
"name": "invalid.illegal.bad-angle-bracket.html",
|
677
|
+
"match": "\u003c"
|
678
|
+
}
|
679
|
+
],
|
680
|
+
"repository": {
|
681
|
+
"entities": {
|
682
|
+
"patterns": [
|
683
|
+
{
|
684
|
+
"name": "constant.character.entity.html",
|
685
|
+
"match": "(\u0026)([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+)(;)",
|
686
|
+
"captures": {
|
687
|
+
"1": {
|
688
|
+
"name": "punctuation.definition.entity.html"
|
689
|
+
},
|
690
|
+
"3": {
|
691
|
+
"name": "punctuation.definition.entity.html"
|
692
|
+
}
|
693
|
+
}
|
694
|
+
},
|
695
|
+
{
|
696
|
+
"name": "invalid.illegal.bad-ampersand.html",
|
697
|
+
"match": "\u0026"
|
698
|
+
}
|
699
|
+
]
|
700
|
+
},
|
701
|
+
"string-double-quoted": {
|
702
|
+
"name": "string.quoted.double.html",
|
703
|
+
"begin": "\"",
|
704
|
+
"end": "\"",
|
705
|
+
"patterns": [
|
706
|
+
{
|
707
|
+
"include": "#vue-interpolations"
|
708
|
+
},
|
709
|
+
{
|
710
|
+
"include": "#entities"
|
711
|
+
}
|
712
|
+
],
|
713
|
+
"beginCaptures": {
|
714
|
+
"0": {
|
715
|
+
"name": "punctuation.definition.string.begin.html"
|
716
|
+
}
|
717
|
+
},
|
718
|
+
"endCaptures": {
|
719
|
+
"0": {
|
720
|
+
"name": "punctuation.definition.string.end.html"
|
721
|
+
}
|
722
|
+
}
|
723
|
+
},
|
724
|
+
"string-single-quoted": {
|
725
|
+
"name": "string.quoted.single.html",
|
726
|
+
"begin": "'",
|
727
|
+
"end": "'",
|
728
|
+
"patterns": [
|
729
|
+
{
|
730
|
+
"include": "#vue-interpolations"
|
731
|
+
},
|
732
|
+
{
|
733
|
+
"include": "#entities"
|
734
|
+
}
|
735
|
+
],
|
736
|
+
"beginCaptures": {
|
737
|
+
"0": {
|
738
|
+
"name": "punctuation.definition.string.begin.html"
|
739
|
+
}
|
740
|
+
},
|
741
|
+
"endCaptures": {
|
742
|
+
"0": {
|
743
|
+
"name": "punctuation.definition.string.end.html"
|
744
|
+
}
|
745
|
+
}
|
746
|
+
},
|
747
|
+
"tag-generic-attribute": {
|
748
|
+
"name": "entity.other.attribute-name.html",
|
749
|
+
"match": "\\b([a-zA-Z\\-:]+)"
|
750
|
+
},
|
751
|
+
"tag-id-attribute": {
|
752
|
+
"name": "meta.attribute-with-value.id.html",
|
753
|
+
"begin": "\\b(id)\\b\\s*(=)",
|
754
|
+
"end": "(?\u003c='|\")",
|
755
|
+
"patterns": [
|
756
|
+
{
|
757
|
+
"name": "string.quoted.double.html",
|
758
|
+
"contentName": "meta.toc-list.id.html",
|
759
|
+
"begin": "\"",
|
760
|
+
"end": "\"",
|
761
|
+
"patterns": [
|
762
|
+
{
|
763
|
+
"include": "#vue-interpolations"
|
764
|
+
},
|
765
|
+
{
|
766
|
+
"include": "#entities"
|
767
|
+
}
|
768
|
+
],
|
769
|
+
"beginCaptures": {
|
770
|
+
"0": {
|
771
|
+
"name": "punctuation.definition.string.begin.html"
|
772
|
+
}
|
773
|
+
},
|
774
|
+
"endCaptures": {
|
775
|
+
"0": {
|
776
|
+
"name": "punctuation.definition.string.end.html"
|
777
|
+
}
|
778
|
+
}
|
779
|
+
},
|
780
|
+
{
|
781
|
+
"name": "string.quoted.single.html",
|
782
|
+
"contentName": "meta.toc-list.id.html",
|
783
|
+
"begin": "'",
|
784
|
+
"end": "'",
|
785
|
+
"patterns": [
|
786
|
+
{
|
787
|
+
"include": "#vue-interpolations"
|
788
|
+
},
|
789
|
+
{
|
790
|
+
"include": "#entities"
|
791
|
+
}
|
792
|
+
],
|
793
|
+
"beginCaptures": {
|
794
|
+
"0": {
|
795
|
+
"name": "punctuation.definition.string.begin.html"
|
796
|
+
}
|
797
|
+
},
|
798
|
+
"endCaptures": {
|
799
|
+
"0": {
|
800
|
+
"name": "punctuation.definition.string.end.html"
|
801
|
+
}
|
802
|
+
}
|
803
|
+
}
|
804
|
+
],
|
805
|
+
"captures": {
|
806
|
+
"1": {
|
807
|
+
"name": "entity.other.attribute-name.id.html"
|
808
|
+
},
|
809
|
+
"2": {
|
810
|
+
"name": "punctuation.separator.key-value.html"
|
811
|
+
}
|
812
|
+
}
|
813
|
+
},
|
814
|
+
"tag-stuff": {
|
815
|
+
"patterns": [
|
816
|
+
{
|
817
|
+
"include": "#vue-directives"
|
818
|
+
},
|
819
|
+
{
|
820
|
+
"include": "#tag-id-attribute"
|
821
|
+
},
|
822
|
+
{
|
823
|
+
"include": "#tag-generic-attribute"
|
824
|
+
},
|
825
|
+
{
|
826
|
+
"include": "#string-double-quoted"
|
827
|
+
},
|
828
|
+
{
|
829
|
+
"include": "#string-single-quoted"
|
830
|
+
}
|
831
|
+
]
|
832
|
+
},
|
833
|
+
"vue-directives": {
|
834
|
+
"name": "meta.directive.vue",
|
835
|
+
"begin": "(?:\\b(v-)|(:|@))([a-zA-Z\\-]+)(?:\\:([a-zA-Z\\-]+))?(?:\\.([a-zA-Z\\-]+))*\\s*(=)",
|
836
|
+
"end": "(?\u003c='|\")",
|
837
|
+
"patterns": [
|
838
|
+
{
|
839
|
+
"name": "source.directive.vue",
|
840
|
+
"begin": "\"",
|
841
|
+
"end": "\"",
|
842
|
+
"patterns": [
|
843
|
+
{
|
844
|
+
"include": "source.js"
|
845
|
+
}
|
846
|
+
],
|
847
|
+
"beginCaptures": {
|
848
|
+
"0": {
|
849
|
+
"name": "punctuation.definition.string.begin.html"
|
850
|
+
}
|
851
|
+
},
|
852
|
+
"endCaptures": {
|
853
|
+
"0": {
|
854
|
+
"name": "punctuation.definition.string.end.html"
|
855
|
+
}
|
856
|
+
}
|
857
|
+
},
|
858
|
+
{
|
859
|
+
"name": "source.directive.vue",
|
860
|
+
"begin": "'",
|
861
|
+
"end": "'",
|
862
|
+
"patterns": [
|
863
|
+
{
|
864
|
+
"include": "source.js"
|
865
|
+
}
|
866
|
+
],
|
867
|
+
"beginCaptures": {
|
868
|
+
"0": {
|
869
|
+
"name": "punctuation.definition.string.begin.html"
|
870
|
+
}
|
871
|
+
},
|
872
|
+
"endCaptures": {
|
873
|
+
"0": {
|
874
|
+
"name": "punctuation.definition.string.end.html"
|
875
|
+
}
|
876
|
+
}
|
877
|
+
}
|
878
|
+
],
|
879
|
+
"captures": {
|
880
|
+
"1": {
|
881
|
+
"name": "entity.other.attribute-name.html"
|
882
|
+
},
|
883
|
+
"2": {
|
884
|
+
"name": "punctuation.separator.key-value.html"
|
885
|
+
},
|
886
|
+
"3": {
|
887
|
+
"name": "entity.other.attribute-name.html"
|
888
|
+
},
|
889
|
+
"4": {
|
890
|
+
"name": "entity.other.attribute-name.html"
|
891
|
+
},
|
892
|
+
"5": {
|
893
|
+
"name": "entity.other.attribute-name.html"
|
894
|
+
},
|
895
|
+
"6": {
|
896
|
+
"name": "punctuation.separator.key-value.html"
|
897
|
+
}
|
898
|
+
}
|
899
|
+
},
|
900
|
+
"vue-interpolations": {
|
901
|
+
"patterns": [
|
902
|
+
{
|
903
|
+
"name": "expression.embbeded.vue",
|
904
|
+
"begin": "\\{\\{\\{?",
|
905
|
+
"end": "\\}\\}\\}?",
|
906
|
+
"patterns": [
|
907
|
+
{
|
908
|
+
"include": "source.js"
|
909
|
+
}
|
910
|
+
],
|
911
|
+
"beginCaptures": {
|
912
|
+
"0": {
|
913
|
+
"name": "punctuation.definition.generic.begin.html"
|
914
|
+
}
|
915
|
+
},
|
916
|
+
"endCaptures": {
|
917
|
+
"0": {
|
918
|
+
"name": "punctuation.definition.generic.end.html"
|
919
|
+
}
|
920
|
+
}
|
921
|
+
}
|
922
|
+
]
|
923
|
+
}
|
924
|
+
}
|
925
|
+
}
|