diff --git a/README.md b/README.md index 57b07ad..0ab3250 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ Sublime Text Syntax highlighting for single-file [Vue.js](http://vuejs.org) comp - Via Package Control: search for `Vue Syntax Highlight`. - Manual: clone this repo into your Sublime `Packages` folder. -**NOTE:** You still need to install corresponding packages for pre-processors (e.g. Jade, SASS, CoffeeScript) to get proper syntax highlighting for them. +**Additional Installation Requirements:** In order to get proper syntax highlighting for pre-processors (e.g. Jade, SASS, CoffeeScript) you will also need to install the corresponding packages for each of them. ### Enabling JSX Highlighting diff --git a/vue.YAML-tmLanguage b/vue.YAML-tmLanguage index bd645db..3c8888f 100644 --- a/vue.YAML-tmLanguage +++ b/vue.YAML-tmLanguage @@ -208,6 +208,24 @@ patterns: patterns: - include: source.css +- name: source.ts.embedded.html + begin: (?:^\s+)?(<)((?i:script))\b(?=[^>]*lang=(['"])ts\1?) + beginCaptures: + '1': {name: punctuation.definition.tag.begin.html} + '2': {name: entity.name.tag.script.html} + end: (?<=)(?:\s*\n)? + endCaptures: + '2': {name: punctuation.definition.tag.html} + patterns: + - include: '#tag-stuff' + - begin: (?) + end: (]*lang=(['"])coffee\1?) beginCaptures: diff --git a/vue.tmLanguage b/vue.tmLanguage index f9f2ec1..a8bdbeb 100644 --- a/vue.tmLanguage +++ b/vue.tmLanguage @@ -695,6 +695,68 @@ + + begin + (?:^\s+)?(<)((?i:script))\b(?=[^>]*lang=(['"])ts\1?) + beginCaptures + + 1 + + name + punctuation.definition.tag.begin.html + + 2 + + name + entity.name.tag.script.html + + + end + (?<=</(script|SCRIPT))(>)(?:\s*\n)? + endCaptures + + 2 + + name + punctuation.definition.tag.html + + + name + source.ts.embedded.html + patterns + + + include + #tag-stuff + + + begin + (?<!</(?:script|SCRIPT))(>) + captures + + 1 + + name + punctuation.definition.tag.begin.html + + 2 + + name + entity.name.tag.script.html + + + end + (</)((?i:script)) + patterns + + + include + source.ts + + + + + begin (?:^\s+)?(<)((?i:script))\b(?=[^>]*lang=(['"])coffee\1?) 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