@@ -67,7 +67,7 @@ contexts:
67
67
68
68
prototype :
69
69
- meta_prepend : true
70
- - include : mustache-templates
70
+ - include : mustache-interpolations
71
71
72
72
tag-html :
73
73
- meta_prepend : true
@@ -717,36 +717,38 @@ contexts:
717
717
cdata-content :
718
718
- meta_prepend : true
719
719
- meta_include_prototype : false
720
- - include : mustache-interpolations
720
+ - include : mustache-string- interpolations
721
721
722
722
strings-common-content :
723
723
- meta_prepend : true
724
- - include : mustache-interpolations
724
+ - include : mustache-string- interpolations
725
725
726
726
# ##[ MUSTAGE TEMPLATES ]######################################################
727
727
728
- mustache-interpolations :
729
- - match : (?={{)
730
- push : mustache-interpolation-content
728
+ mustache-string-interpolations :
729
+ - match : ' {{'
730
+ scope : meta.embedded.expression.vue punctuation.section.embedded.begin.html
731
+ push : mustache-string-interpolation-body
731
732
732
- mustache-interpolation-content :
733
+ mustache-string- interpolation-body :
733
734
- clear_scopes : 1
734
- - include : mustache-templates
735
- - include : immediately-pop
735
+ - meta_include_prototype : false
736
+ - meta_content_scope : meta.embedded.expression.vue source.js.embedded.vue
737
+ - include : mustache-interpolation-body
736
738
737
- mustache-templates :
739
+ mustache-interpolations :
738
740
- match : ' {{'
739
- scope : meta.interpolation.vue punctuation.section.interpolation.begin.html
740
- push :
741
- - mustache-template-end
742
- - scope:source.js#expression
741
+ scope : meta.embedded.expression.vue punctuation.section.embedded.begin.html
742
+ push : mustache-interpolation-body
743
743
744
- mustache-template-end :
744
+ mustache-interpolation-body :
745
745
- meta_include_prototype : false
746
- - meta_content_scope : meta.interpolation .vue source.js.embedded.vue
746
+ - meta_content_scope : meta.embedded.expression .vue source.js.embedded.vue
747
747
- match : ' }}'
748
- scope : meta.interpolation. vue punctuation.section.interpolation .end.html
748
+ scope : meta.embedded.expression. vue punctuation.section.embedded .end.html
749
749
pop : 1
750
+ - match : (?=\S)
751
+ push : scope:source.js#expression
750
752
751
753
# ##[ VUE DIRECTIVES ]#########################################################
752
754
@@ -791,7 +793,7 @@ contexts:
791
793
- meta_include_prototype : false
792
794
# https://vuejs.org/guide/essentials/template-syntax.html#dynamic-arguments
793
795
- match : \[
794
- scope : punctuation.section.interpolation .begin.vue
796
+ scope : punctuation.section.embedded .begin.vue
795
797
set :
796
798
- vue-dynamic-parameter-name-end
797
799
- scope:source.js#expression
@@ -800,10 +802,10 @@ contexts:
800
802
801
803
vue-dynamic-parameter-name-end :
802
804
- meta_include_prototype : false
803
- - meta_scope : meta.directive.parameter.vue meta.interpolation .vue
805
+ - meta_scope : meta.directive.parameter.vue meta.embedded.expression .vue
804
806
- meta_content_scope : source.js.embedded.vue
805
807
- match : \]
806
- scope : punctuation.section.interpolation .end.vue
808
+ scope : punctuation.section.embedded .end.vue
807
809
set : vue-directive-modifiers
808
810
809
811
vue-static-parameter-name :
@@ -843,7 +845,7 @@ contexts:
843
845
vue-directive-double-quoted-value :
844
846
- meta_include_prototype : false
845
847
- meta_scope : meta.directive.value.vue meta.string.vue
846
- - meta_content_scope : meta.interpolation .vue source.js.embedded.vue
848
+ - meta_content_scope : meta.embedded.expression .vue source.js.embedded.vue
847
849
- match : \"
848
850
scope : string.quoted.double.vue punctuation.definition.string.end.vue
849
851
pop : 1
@@ -853,7 +855,7 @@ contexts:
853
855
vue-directive-single-quoted-value :
854
856
- meta_include_prototype : false
855
857
- meta_scope : meta.directive.value.vue meta.string.vue
856
- - meta_content_scope : meta.interpolation .vue source.js.embedded.vue
858
+ - meta_content_scope : meta.embedded.expression .vue source.js.embedded.vue
857
859
- match : \'
858
860
scope : string.quoted.single.vue punctuation.definition.string.end.vue
859
861
pop : 1
0 commit comments