@@ -50,31 +50,54 @@ variables:
50
50
)
51
51
52
52
contexts :
53
+
54
+ # ##[ HTML TAGS ]##############################################################
55
+
56
+ prototype :
57
+ - meta_prepend : true
58
+ - include : mustache-templates
59
+
53
60
main :
54
61
- meta_prepend : true
55
62
- include : template-tag
56
- - include : mustache-expression
57
-
58
- mustache-expression :
59
- - match : (?={{)
60
- set :
61
- - meta_scope : meta.template.vue
62
- - match : ' {{'
63
- scope : punctuation.definition.template.begin.html
64
- embed : scope:source.js
65
- embed_scope : source.js.embedded.vue
66
- escape : ' }}'
67
- escape_captures :
68
- 0 : meta.template.vue punctuation.definition.template.end.html
69
- - match : ' '
70
- pop : true
71
63
72
64
# ##[ TAG ATTRIBUTES ]#########################################################
73
65
74
66
tag-attributes :
75
67
- meta_prepend : true
76
68
- include : vue-directive
77
69
70
+ tag-attribute-value-content :
71
+ - meta_prepend : true
72
+ - include : mustache-interpolations
73
+
74
+ strings-common-content :
75
+ - meta_prepend : true
76
+ - include : mustache-interpolations
77
+
78
+ # ##[ MUSTAGE TEMPLATES ]######################################################
79
+
80
+ mustache-interpolations :
81
+ - match : (?={{)
82
+ push : mustache-interpolation-content
83
+
84
+ mustache-interpolation-content :
85
+ - clear_scopes : 1
86
+ - meta_scope : meta.interpolation.html
87
+ - include : mustache-templates
88
+ - include : immediately-pop
89
+
90
+ mustache-templates :
91
+ - match : ' {{'
92
+ scope : meta.template.vue punctuation.definition.template.begin.html
93
+ embed : scope:source.js
94
+ embed_scope : meta.template.vue source.js.embedded.vue
95
+ escape : ' }}'
96
+ escape_captures :
97
+ 0 : meta.template.vue punctuation.definition.template.end.html
98
+
99
+ # ##[ VUE DIRECTIVES ]#########################################################
100
+
78
101
vue-directive :
79
102
- match : (?=v-)
80
103
push :
@@ -180,13 +203,13 @@ contexts:
180
203
scope : punctuation.definition.tag.end.html
181
204
set :
182
205
- - include : style-close-tag
183
- - - embed_scope : source.sass.embedded.html
184
- escape_captures :
206
+ - - escape_captures :
185
207
1 : source.sass.embedded.html
186
208
2 : comment.block.html punctuation.definition.comment.end.html
187
209
3 : source.sass.embedded.html
188
210
4 : comment.block.html punctuation.definition.comment.end.html
189
211
match : ' {{style_content_begin}}'
212
+ embed_scope : source.sass.embedded.html
190
213
captures :
191
214
1 : comment.block.html punctuation.definition.comment.begin.html
192
215
pop : 1
@@ -202,13 +225,13 @@ contexts:
202
225
scope : punctuation.definition.tag.end.html
203
226
set :
204
227
- - include : style-close-tag
205
- - - embed_scope : source.scss.embedded.html
206
- escape_captures :
228
+ - - escape_captures :
207
229
1 : source.scss.embedded.html
208
230
2 : comment.block.html punctuation.definition.comment.end.html
209
231
3 : source.scss.embedded.html
210
232
4 : comment.block.html punctuation.definition.comment.end.html
211
233
match : ' {{style_content_begin}}'
234
+ embed_scope : source.scss.embedded.html
212
235
captures :
213
236
1 : comment.block.html punctuation.definition.comment.begin.html
214
237
pop : 1
@@ -224,13 +247,13 @@ contexts:
224
247
scope : punctuation.definition.tag.end.html
225
248
set :
226
249
- - include : style-close-tag
227
- - - embed_scope : source.stylus.embedded.html
228
- escape_captures :
250
+ - - escape_captures :
229
251
1 : source.stylus.embedded.html
230
252
2 : comment.block.html punctuation.definition.comment.end.html
231
253
3 : source.stylus.embedded.html
232
254
4 : comment.block.html punctuation.definition.comment.end.html
233
255
match : ' {{style_content_begin}}'
256
+ embed_scope : source.stylus.embedded.html
234
257
captures :
235
258
1 : comment.block.html punctuation.definition.comment.begin.html
236
259
pop : 1
@@ -246,13 +269,13 @@ contexts:
246
269
scope : punctuation.definition.tag.end.html
247
270
set :
248
271
- - include : style-close-tag
249
- - - embed_scope : source.sss.embedded.html
250
- escape_captures :
272
+ - - escape_captures :
251
273
1 : source.sss.embedded.html
252
274
2 : comment.block.html punctuation.definition.comment.end.html
253
275
3 : source.sss.embedded.html
254
276
4 : comment.block.html punctuation.definition.comment.end.html
255
277
match : ' {{style_content_begin}}'
278
+ embed_scope : source.sss.embedded.html
256
279
captures :
257
280
1 : comment.block.html punctuation.definition.comment.begin.html
258
281
pop : 1
@@ -268,13 +291,13 @@ contexts:
268
291
scope : punctuation.definition.tag.end.html
269
292
set :
270
293
- - include : style-close-tag
271
- - - embed_scope : source.postcss.embedded.html
272
- escape_captures :
294
+ - - escape_captures :
273
295
1 : source.postcss.embedded.html
274
296
2 : comment.block.html punctuation.definition.comment.end.html
275
297
3 : source.postcss.embedded.html
276
298
4 : comment.block.html punctuation.definition.comment.end.html
277
299
match : ' {{style_content_begin}}'
300
+ embed_scope : source.postcss.embedded.html
278
301
captures :
279
302
1 : comment.block.html punctuation.definition.comment.begin.html
280
303
pop : 1
@@ -290,13 +313,13 @@ contexts:
290
313
scope : punctuation.definition.tag.end.html
291
314
set :
292
315
- - include : style-close-tag
293
- - - embed_scope : source.less.embedded.html
294
- escape_captures :
316
+ - - escape_captures :
295
317
1 : source.less.embedded.html
296
318
2 : comment.block.html punctuation.definition.comment.end.html
297
319
3 : source.less.embedded.html
298
320
4 : comment.block.html punctuation.definition.comment.end.html
299
321
match : ' {{style_content_begin}}'
322
+ embed_scope : source.less.embedded.html
300
323
captures :
301
324
1 : comment.block.html punctuation.definition.comment.begin.html
302
325
pop : 1
@@ -379,13 +402,13 @@ contexts:
379
402
scope : punctuation.definition.tag.end.html
380
403
set :
381
404
- - include : script-close-tag
382
- - - embed_scope : source.coffee.embedded.html
383
- escape_captures :
405
+ - - escape_captures :
384
406
1 : source.coffee.embedded.html
385
407
2 : comment.block.html punctuation.definition.comment.end.html
386
408
3 : source.coffee.embedded.html
387
409
4 : comment.block.html punctuation.definition.comment.end.html
388
410
match : ' {{script_content_begin}}'
411
+ embed_scope : source.coffee.embedded.html
389
412
captures :
390
413
1 : comment.block.html punctuation.definition.comment.begin.html
391
414
pop : 1
@@ -401,13 +424,13 @@ contexts:
401
424
scope : punctuation.definition.tag.end.html
402
425
set :
403
426
- - include : script-close-tag
404
- - - embed_scope : source.livescript.embedded.html
405
- escape_captures :
427
+ - - escape_captures :
406
428
1 : source.livescript.embedded.html
407
429
2 : comment.block.html punctuation.definition.comment.end.html
408
430
3 : source.livescript.embedded.html
409
431
4 : comment.block.html punctuation.definition.comment.end.html
410
432
match : ' {{script_content_begin}}'
433
+ embed_scope : source.livescript.embedded.html
411
434
captures :
412
435
1 : comment.block.html punctuation.definition.comment.begin.html
413
436
pop : 1
@@ -423,13 +446,13 @@ contexts:
423
446
scope : punctuation.definition.tag.end.html
424
447
set :
425
448
- - include : script-close-tag
426
- - - embed_scope : source.ts.embedded.html
427
- escape_captures :
449
+ - - escape_captures :
428
450
1 : source.ts.embedded.html
429
451
2 : comment.block.html punctuation.definition.comment.end.html
430
452
3 : source.ts.embedded.html
431
453
4 : comment.block.html punctuation.definition.comment.end.html
432
454
match : ' {{script_content_begin}}'
455
+ embed_scope : source.ts.embedded.html
433
456
captures :
434
457
1 : comment.block.html punctuation.definition.comment.begin.html
435
458
pop : 1
@@ -451,6 +474,12 @@ contexts:
451
474
1 : punctuation.definition.tag.begin.html
452
475
2 : entity.name.tag.template.html
453
476
push : template-mustache
477
+ - match : (</)((?i:template))(>)
478
+ scope : meta.tag.template.end.html
479
+ captures :
480
+ 1 : punctuation.definition.tag.begin.html
481
+ 2 : entity.name.tag.template.html
482
+ 3 : punctuation.definition.tag.end.html
454
483
455
484
template-close-tag :
456
485
- match : (</)((?i:template))(>)
@@ -471,10 +500,7 @@ contexts:
471
500
- include : template-common
472
501
- match : ' >'
473
502
scope : punctuation.definition.tag.end.html
474
- set :
475
- - include : template-close-tag
476
- - match : ' '
477
- push : main
503
+ pop : 1
478
504
479
505
template-lang-attribute :
480
506
- match : (?i:lang){{attribute_name_break}}
@@ -503,13 +529,13 @@ contexts:
503
529
scope : punctuation.definition.tag.end.html
504
530
set :
505
531
- - include : template-close-tag
506
- - - embed_scope : text.jade.embedded.html
507
- escape_captures :
532
+ - - escape_captures :
508
533
1 : text.jade.embedded.html
509
534
2 : comment.block.html punctuation.definition.comment.end.html
510
535
3 : text.jade.embedded.html
511
536
4 : comment.block.html punctuation.definition.comment.end.html
512
537
match : ' {{template_content_begin}}'
538
+ embed_scope : text.jade.embedded.html
513
539
captures :
514
540
1 : comment.block.html punctuation.definition.comment.begin.html
515
541
pop : 1
@@ -525,13 +551,13 @@ contexts:
525
551
scope : punctuation.definition.tag.end.html
526
552
set :
527
553
- - include : template-close-tag
528
- - - embed_scope : text.pug.embedded.html
529
- escape_captures :
554
+ - - escape_captures :
530
555
1 : text.pug.embedded.html
531
556
2 : comment.block.html punctuation.definition.comment.end.html
532
557
3 : text.pug.embedded.html
533
558
4 : comment.block.html punctuation.definition.comment.end.html
534
559
match : ' {{template_content_begin}}'
560
+ embed_scope : text.pug.embedded.html
535
561
captures :
536
562
1 : comment.block.html punctuation.definition.comment.begin.html
537
563
pop : 1
@@ -547,13 +573,13 @@ contexts:
547
573
scope : punctuation.definition.tag.end.html
548
574
set :
549
575
- - include : template-close-tag
550
- - - embed_scope : text.slm.embedded.html
551
- escape_captures :
576
+ - - escape_captures :
552
577
1 : text.slm.embedded.html
553
578
2 : comment.block.html punctuation.definition.comment.end.html
554
579
3 : text.slm.embedded.html
555
580
4 : comment.block.html punctuation.definition.comment.end.html
556
581
match : ' {{template_content_begin}}'
582
+ embed_scope : text.slm.embedded.html
557
583
captures :
558
584
1 : comment.block.html punctuation.definition.comment.begin.html
559
585
pop : 1
0 commit comments