diff --git a/vue.YAML-tmLanguage b/vue.YAML-tmLanguage index 2383f2d..b9a64f5 100644 --- a/vue.YAML-tmLanguage +++ b/vue.YAML-tmLanguage @@ -62,7 +62,7 @@ patterns: match: (\s*)(?!--|>)\S(\s*) - name: text.jade.embedded.html - begin: (?:^\s+)?(<)((?i:template))\b(?=[^>]*lang="jade") + begin: (?:^\s+)?(<)((?i:template))\b(?=[^>]*lang="jade(?:\?[^"]*)?") end: ()(?:\s*\n)? captures: '1': {name: punctuation.definition.tag.begin.html} @@ -78,7 +78,7 @@ patterns: - include: text.jade - name: source.vue-stylus.embedded.html - begin: (?:^\s+)?(<)((?i:style))\b(?=[^>]*lang="stylus") + begin: (?:^\s+)?(<)((?i:style))\b(?=[^>]*lang="stylus(?:\?[^"]*)?") end: ()(?:\s*\n)? captures: '1': {name: punctuation.definition.tag.begin.html} @@ -94,7 +94,7 @@ patterns: - include: source.stylus - name: source.sass.embedded.html - begin: (?:^\s+)?(<)((?i:style))\b(?=[^>]*lang="(?:s(a|c)ss)") + begin: (?:^\s+)?(<)((?i:style))\b(?=[^>]*lang="(?:s(a|c)ss)(?:\?[^"]*)?") end: ()(?:\s*\n)? captures: '1': {name: punctuation.definition.tag.begin.html} @@ -110,7 +110,7 @@ patterns: - include: source.sass - name: source.less.embedded.html - begin: (?:^\s+)?(<)((?i:style))\b(?=[^>]*lang="less") + begin: (?:^\s+)?(<)((?i:style))\b(?=[^>]*lang="less(?:\?[^"]*)?") end: ()(?:\s*\n)? captures: '1': {name: punctuation.definition.tag.begin.html} @@ -142,7 +142,7 @@ patterns: - include: source.css - name: source.coffee.embedded.html - begin: (?:^\s+)?(<)((?i:script))\b(?=[^>]*lang="coffee") + begin: (?:^\s+)?(<)((?i:script))\b(?=[^>]*lang="coffee(?:\?[^"]*)?") beginCaptures: '1': {name: punctuation.definition.tag.begin.html} '2': {name: entity.name.tag.script.html} diff --git a/vue.tmLanguage b/vue.tmLanguage index 906ec8e..d72bd89 100644 --- a/vue.tmLanguage +++ b/vue.tmLanguage @@ -209,7 +209,7 @@ begin - (?:^\s+)?(<)((?i:template))\b(?=[^>]*lang="jade") + (?:^\s+)?(<)((?i:template))\b(?=[^>]*lang="jade(?:\?[^"]*)?") captures 1 @@ -263,7 +263,7 @@ begin - (?:^\s+)?(<)((?i:style))\b(?=[^>]*lang="stylus") + (?:^\s+)?(<)((?i:style))\b(?=[^>]*lang="stylus(?:\?[^"]*)?") captures 1 @@ -317,7 +317,7 @@ begin - (?:^\s+)?(<)((?i:style))\b(?=[^>]*lang="(?:s(a|c)ss)") + (?:^\s+)?(<)((?i:style))\b(?=[^>]*lang="(?:s(a|c)ss)(?:\?[^"]*)?") captures 1 @@ -371,7 +371,7 @@ begin - (?:^\s+)?(<)((?i:style))\b(?=[^>]*lang="less") + (?:^\s+)?(<)((?i:style))\b(?=[^>]*lang="less(?:\?[^"]*)?") captures 1 @@ -479,7 +479,7 @@ begin - (?:^\s+)?(<)((?i:script))\b(?=[^>]*lang="coffee") + (?:^\s+)?(<)((?i:script))\b(?=[^>]*lang="coffee(?:\?[^"]*)?") beginCaptures 1