@@ -6,6 +6,8 @@ fileTypes: [vue]
66uuid : 5512c10d-4cc5-434c-b8fc-53b912f55ab3
77
88patterns :
9+ - include : ' #vue-interpolations'
10+
911- name : meta.tag.any.html
1012 begin : (<)([a-zA-Z0-9:-]++)(?=[^>]*></\2>)
1113 beginCaptures :
@@ -239,6 +241,48 @@ patterns:
239241 match : <
240242
241243repository :
244+ vue-interpolations :
245+ patterns :
246+ - name : expression.embbeded.vue
247+ begin : \{\{\{?
248+ end : \}\}\}?
249+ beginCaptures :
250+ ' 0 ' : {name: punctuation.definition.tag.begin.html}
251+ endCaptures :
252+ ' 0 ' : {name: punctuation.definition.tag.end.html}
253+ patterns :
254+ - include : source.js
255+
256+ vue-directives :
257+ name : meta.directive.vue
258+ begin : (?:\b(v-)|(:|@))([a-zA-Z\-]+)(?:\:([a-zA-Z\-]+))?(?:\.([a-zA-Z\-]+))*\s*(=)
259+ end : (?<='|")
260+ captures :
261+ ' 1 ' : {name: entity.other.attribute-name.html}
262+ ' 2 ' : {name: punctuation.separator.key-value.html}
263+ ' 3 ' : {name: entity.other.attribute-name.html}
264+ ' 4 ' : {name: entity.other.attribute-name.html}
265+ ' 5 ' : {name: entity.other.attribute-name.html}
266+ ' 6 ' : {name: punctuation.separator.key-value.html}
267+ patterns :
268+ - name : source.directive.vue
269+ begin : ' "'
270+ beginCaptures :
271+ ' 0 ' : {name: punctuation.definition.string.begin.html}
272+ end : ' "'
273+ endCaptures :
274+ ' 0 ' : {name: punctuation.definition.string.end.html}
275+ patterns :
276+ - include : source.js
277+ - name : source.directive.vue
278+ begin : ' '' '
279+ beginCaptures :
280+ ' 0 ' : {name: punctuation.definition.string.begin.html}
281+ end : ' '' '
282+ endCaptures :
283+ ' 0 ' : {name: punctuation.definition.string.end.html}
284+ patterns :
285+ - include : source.js
242286
243287 entities :
244288 patterns :
@@ -259,6 +303,7 @@ repository:
259303 endCaptures :
260304 ' 0 ' : {name: punctuation.definition.string.end.html}
261305 patterns :
306+ - include : ' #vue-interpolations'
262307 - include : ' #entities'
263308
264309 string-single-quoted :
@@ -270,39 +315,9 @@ repository:
270315 endCaptures :
271316 ' 0 ' : {name: punctuation.definition.string.end.html}
272317 patterns :
318+ - include : ' #vue-interpolations'
273319 - include : ' #entities'
274320
275- vue-directive :
276- name : meta.directive.vue
277- begin : (?:\b(v-)|(:|@))([a-zA-Z\-]+)(?:\:([a-zA-Z\-]+))?(?:\.([a-zA-Z\-]+))*\s*(=)
278- end : (?<='|")
279- captures :
280- ' 1 ' : {name: entity.other.attribute-name.html}
281- ' 2 ' : {name: punctuation.separator.key-value.html}
282- ' 3 ' : {name: entity.other.attribute-name.html}
283- ' 4 ' : {name: entity.other.attribute-name.html}
284- ' 5 ' : {name: entity.other.attribute-name.html}
285- ' 6 ' : {name: punctuation.separator.key-value.html}
286- patterns :
287- - name : source.directive.vue
288- begin : ' "'
289- beginCaptures :
290- ' 0 ' : {name: punctuation.definition.string.begin.html}
291- end : ' "'
292- endCaptures :
293- ' 0 ' : {name: punctuation.definition.string.end.html}
294- patterns :
295- - include : source.js
296- - name : source.directive.vue
297- begin : ' '' '
298- beginCaptures :
299- ' 0 ' : {name: punctuation.definition.string.begin.html}
300- end : ' '' '
301- endCaptures :
302- ' 0 ' : {name: punctuation.definition.string.end.html}
303- patterns :
304- - include : source.js
305-
306321 tag-generic-attribute :
307322 name : entity.other.attribute-name.html
308323 match : \b([a-zA-Z\-:]+)
@@ -324,6 +339,7 @@ repository:
324339 endCaptures :
325340 ' 0 ' : {name: punctuation.definition.string.end.html}
326341 patterns :
342+ - include : ' #vue-interpolations'
327343 - include : ' #entities'
328344 - name : string.quoted.single.html
329345 contentName : meta.toc-list.id.html
@@ -334,11 +350,12 @@ repository:
334350 endCaptures :
335351 ' 0 ' : {name: punctuation.definition.string.end.html}
336352 patterns :
353+ - include : ' #vue-interpolations'
337354 - include : ' #entities'
338355
339356 tag-stuff :
340357 patterns :
341- - include : ' #vue-directive '
358+ - include : ' #vue-directives '
342359 - include : ' #tag-id-attribute'
343360 - include : ' #tag-generic-attribute'
344361 - include : ' #string-double-quoted'
0 commit comments