From 30bc374e71e71dba58f6e0c35bcc2e2b285a5a39 Mon Sep 17 00:00:00 2001 From: John Leung Date: Fri, 22 Jul 2016 22:51:22 -0700 Subject: [PATCH] Added lang=livescript support --- vue.YAML-tmLanguage | 18 +++++++++++++ vue.tmLanguage | 62 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+) diff --git a/vue.YAML-tmLanguage b/vue.YAML-tmLanguage index 77b8735..2d127a1 100644 --- a/vue.YAML-tmLanguage +++ b/vue.YAML-tmLanguage @@ -194,6 +194,24 @@ patterns: patterns: - include: source.coffee +- name: source.livescript.embedded.html + begin: (?:^\s+)?(<)((?i:script))\b(?=[^>]*lang="livescript(?:\?[^"]*)?") + 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: (]*/>)(?![^>]*(?i:type.?=.?text/((?!javascript|babel).*))) beginCaptures: diff --git a/vue.tmLanguage b/vue.tmLanguage index 8e56b0e..1b959f0 100644 --- a/vue.tmLanguage +++ b/vue.tmLanguage @@ -649,6 +649,68 @@ + + begin + (?:^\s+)?(<)((?i:script))\b(?=[^>]*lang="livescript(?:\?[^"]*)?") + 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.livescript.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.livescript + + + + + begin (<)((?i:script))\b(?![^>]*/>)(?![^>]*(?i:type.?=.?text/((?!javascript|babel).*))) 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