Skip to content

Commit c191f16

Browse files
committed
treat script blocks with explicit non-js type as plain text
1 parent b4c91d1 commit c191f16

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
@@ -179,7 +179,7 @@ patterns:
179179
- include: source.coffee
180180

181181
- name: source.js.embedded.html
182-
begin: (?:^\s+)?(<)((?i:script))\b(?![^>]*/>)
182+
begin: (<)((?i:script))\b(?![^>]*/>)(?![^>]*(?i:type.?=.?text/((?!javascript).*)))
183183
beginCaptures:
184184
'1': {name: punctuation.definition.tag.begin.html}
185185
'2': {name: entity.name.tag.script.html}

vue.tmLanguage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@
597597
</dict>
598598
<dict>
599599
<key>begin</key>
600-
<string>(?:^\s+)?(&lt;)((?i:script))\b(?![^&gt;]*/&gt;)</string>
600+
<string>(&lt;)((?i:script))\b(?![^&gt;]*/&gt;)(?![^&gt;]*(?i:type.?=.?text/((?!javascript).*)))</string>
601601
<key>beginCaptures</key>
602602
<dict>
603603
<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