@@ -644,44 +644,6 @@ contexts:
644
644
1 : punctuation.definition.tag.begin.html
645
645
2 : entity.name.tag.template.html
646
646
push : template-mustache
647
- # - match: '(?i)(<)(template)\b'
648
- # captures:
649
- # 0: meta.tag.template.begin.html
650
- # 1: punctuation.definition.tag.begin.html
651
- # 2: entity.name.tag.template.html
652
- # push:
653
- # - match: (?i)(</)(template)(>)
654
- # captures:
655
- # 0: meta.tag.template.end.html
656
- # 1: punctuation.definition.tag.begin.html
657
- # 2: entity.name.tag.template.html
658
- # 3: punctuation.definition.tag.end.html
659
- # pop: true
660
- # - match: '>'
661
- # scope: meta.tag.template.begin.html punctuation.definition.tag.end.html
662
- # push: mustache-template
663
- # - match: ''
664
- # push:
665
- # - meta_scope: meta.tag.template.begin.html
666
- # - match: '(?=>)'
667
- # pop: true
668
- # - include: tag-attributes
669
-
670
- mustache-template :
671
- - match : (?=</template)
672
- pop : true
673
- - match : ' {{'
674
- scope : punctuation.definition.template.begin.html
675
- push :
676
- - match : ' }}'
677
- scope : punctuation.definition.template.end.html
678
- pop : true
679
- - match : ' '
680
- push : scope:source.js
681
- with_prototype :
682
- - match : (?=}})
683
- pop : true
684
- - include : main
685
647
686
648
vue-directive :
687
649
- match : \b(v-[\w\:\.-]+)\b
@@ -702,26 +664,16 @@ contexts:
702
664
js-string :
703
665
- match : ' "'
704
666
scope : punctuation.definition.string.begin.html
705
- push :
706
- - match : ' "'
707
- scope : punctuation.definition.string.end.html
708
- pop : true
709
- - match : ' '
710
- push : scope:source.js
711
- with_prototype :
712
- - match : (?=")
713
- pop : true
667
+ embed : scope:source.js
668
+ escape : ' "'
669
+ escape_captures :
670
+ 0 : punctuation.definition.string.end.html
714
671
- match : " '"
715
672
scope : punctuation.definition.string.begin.html
716
- push :
717
- - match : " '"
718
- scope : punctuation.definition.string.end.html
719
- pop : true
720
- - match : ' '
721
- push : scope:source.js
722
- with_prototype :
723
- - match : (?=')
724
- pop : true
673
+ embed : scope:source.js
674
+ escape : " '"
675
+ escape_captures :
676
+ 0 : punctuation.definition.string.end.html
725
677
726
678
- include : else-pop
727
679
0 commit comments