diff --git a/Vue Component.sublime-syntax b/Vue Component.sublime-syntax index a2448a8..07248dc 100644 --- a/Vue Component.sublime-syntax +++ b/Vue Component.sublime-syntax @@ -2,7 +2,6 @@ --- name: Vue Component file_extensions: [vue] -first_line_match: (?i)<(!DOCTYPE\s*)?html scope: text.html.vue variables: attribute_char: (?:[^ "'>/=\x00-\x1f\x7f-\x9f]) @@ -639,15 +638,21 @@ contexts: - include: tag-event-attribute - include: tag-generic-attribute mustache-expression: - - match: '{{' - scope: punctuation.definition.template.begin.html - embed: scope:source.js - escape: '}}' - escape_captures: - 0: punctuation.definition.template.end.html + - match: (?={{) + set: + - meta_scope: meta.template.vue + - match: '{{' + scope: punctuation.definition.template.begin.html + embed: scope:source.js + embed_scope: source.js.embedded.vue + escape: '}}' + escape_captures: + 0: meta.template.vue punctuation.definition.template.end.html + - match: '' + pop: true template-tag: - - match: (<)((?i:template))\b + - match: (<)((?i:template(>| )))\b captures: 0: meta.tag.template.begin.html 1: punctuation.definition.tag.begin.html @@ -674,12 +679,14 @@ contexts: - match: '"' scope: punctuation.definition.string.begin.html embed: scope:source.js + embed_scope: source.js.embedded.vue escape: '"' escape_captures: 0: punctuation.definition.string.end.html - match: "'" scope: punctuation.definition.string.begin.html embed: scope:source.js + embed_scope: source.js.embedded.vue escape: "'" escape_captures: 0: punctuation.definition.string.end.html @@ -708,8 +715,8 @@ contexts: scope: punctuation.definition.tag.end.html set: - include: style-close-tag - - match: '' - embed_scope: source.sass.embedded.html + - embed_scope: source.sass.embedded.html + match: '' embed: scope:source.sass escape: (?i)(?=(?:-->\s*)?\s*)?\s*)?' + scope: punctuation.definition.tag.end.html + set: + - include: style-close-tag + - embed_scope: source.sss.embedded.html + match: '' + embed: scope:source.sss + escape: (?i)(?=(?:-->\s*)?\s*)?\s*)?\s*)?\s*)?\s*)?\s*)?\s*)?\s*)?| )))\b captures: 0: meta.tag.template.begin.html 1: punctuation.definition.tag.begin.html @@ -52,12 +58,14 @@ contexts: !merge - match: '"' scope: punctuation.definition.string.begin.html embed: scope:source.js + embed_scope: source.js.embedded.vue escape: '"' escape_captures: 0: punctuation.definition.string.end.html - match: "'" scope: punctuation.definition.string.begin.html embed: scope:source.js + embed_scope: source.js.embedded.vue escape: "'" escape_captures: 0: punctuation.definition.string.end.html @@ -84,8 +92,9 @@ contexts: !merge - !style_language [ sass, source.sass ] - !style_language [ scss, source.scss ] - !style_language [ stylus, source.stylus ] + - !style_language [ postcss\?parser=sugarss, source.sss ] - !style_language [ postcss, source.postcss ] - - !style_language [ less, source.css.less ] + - !style_language [ less, source.less ] - match: (?=\S) set: - style-css pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy