Skip to content

Commit 0cb7ccd

Browse files
luke-jyyx990803
authored andcommitted
Add support for type="text/babel" (#57)
1 parent a29a875 commit 0cb7ccd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

vue.YAML-tmLanguage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ patterns:
195195
- include: source.coffee
196196

197197
- name: source.js.embedded.html
198-
begin: (<)((?i:script))\b(?![^>]*/>)(?![^>]*(?i:type.?=.?text/((?!javascript).*)))
198+
begin: (<)((?i:script))\b(?![^>]*/>)(?![^>]*(?i:type.?=.?text/((?!javascript|babel).*)))
199199
beginCaptures:
200200
'1': {name: punctuation.definition.tag.begin.html}
201201
'2': {name: entity.name.tag.script.html}

vue.tmLanguage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@
651651
</dict>
652652
<dict>
653653
<key>begin</key>
654-
<string>(&lt;)((?i:script))\b(?![^&gt;]*/&gt;)(?![^&gt;]*(?i:type.?=.?text/((?!javascript).*)))</string>
654+
<string>(&lt;)((?i:script))\b(?![^&gt;]*/&gt;)(?![^&gt;]*(?i:type.?=.?text/((?!javascript|babel).*)))</string>
655655
<key>beginCaptures</key>
656656
<dict>
657657
<key>1</key>

0 commit comments

Comments
 (0)
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