File tree 3 files changed +26
-1
lines changed
3 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -115,3 +115,5 @@ html, body
115
115
each item in items
116
116
li= item
117
117
</template>
118
+
119
+ <template v-slot:item.parentkey.subkey.subkey.subkey.subkey.subkey="{ value }"></template>
Original file line number Diff line number Diff line change 733
733
[" meta.tag.punctuation.tag-close.xml" ," >" ]
734
734
],[
735
735
" start"
736
+ ],[
737
+ " start" ,
738
+ [" meta.tag.punctuation.tag-open.xml" ," <" ],
739
+ [" meta.tag.tag-name.xml" ," template" ],
740
+ [" text.tag-whitespace.xml" ," " ],
741
+ [" entity.other.attribute-name.xml" ," v-" ],
742
+ [" entity.other.attribute-name.xml" ," slot" ],
743
+ [" entity.other.attribute-name.xml" ," :item" ],
744
+ [" entity.other.attribute-name.xml" ," .parentkey.subkey.subkey.subkey.subkey.subkey" ],
745
+ [" punctuation.separator.key-value.xml" ," =" ],
746
+ [" string" ," \" " ],
747
+ [" paren.lparen" ," {" ],
748
+ [" text" ," " ],
749
+ [" identifier" ," value" ],
750
+ [" text" ," " ],
751
+ [" paren.rparen" ," }" ],
752
+ [" string" ," \" " ],
753
+ [" meta.tag.punctuation.tag-close.xml" ," >" ],
754
+ [" meta.tag.punctuation.end-tag-open.xml" ," </" ],
755
+ [" meta.tag.tag-name.xml" ," template" ],
756
+ [" meta.tag.punctuation.tag-close.xml" ," >" ]
757
+ ],[
758
+ " start"
736
759
]]
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ var VueHighlightRules = function (options) {
84
84
var self = this ;
85
85
VueRules . tag_stuff . unshift ( { //vue-directives
86
86
token : "string" ,
87
- regex : / (?: \b ( v - ) | ( : | @ ) ) ( \[ ? [ a - z A - Z \- . ] + \] ? ) (?: ( \: \[ ? [ a - z A - Z \- ] + \] ? ) ) ? (?: ( \. [ a - z A - Z \- ] + ) ) * ( \s * ) ( = ) ( \s * ) ( [ " ' ] ) / ,
87
+ regex : / (?: \b ( v - ) | ( : | @ ) ) ( \[ ? [ a - z A - Z \- . ] + \] ? ) (?: ( \: \[ ? [ a - z A - Z \- ] + \] ? ) ) ? ( (?: \. [ a - z A - Z \- ] + ) * ) ( \s * ) ( = ) ( \s * ) ( [ " ' ] ) / ,
88
88
onMatch : function ( value , currentState , stack ) {
89
89
var quote = value [ value . length - 1 ] ;
90
90
stack . unshift ( quote , currentState ) ;
You can’t perform that action at this time.
0 commit comments