Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc191f16

Browse files
committed
treat script blocks with explicit non-js type as plain text
1 parentb4c91d1 commitc191f16

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)

[8]ページ先頭

©2009-2025 Movatter.jp