We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a1976b commit c6ad81eCopy full SHA for c6ad81e
mode/htmlmixed/htmlmixed.js
@@ -9,7 +9,7 @@ CodeMirror.defineMode("htmlmixed", function(config) {
9
if (/(?:^|\s)tag(?:\s|$)/.test(style) && stream.current() == ">" && state.htmlState.context) {
10
if (/^script$/i.test(state.htmlState.context.tagName)) {
11
// Script block: mode to change to depends on type attribute
12
- var scriptType = stream.string.slice(stream.pos - 30, stream.pos).match(/\btype\s*=\s*("[^"]+"|'[^']+'|\S+)[^<]*$/i);
+ var scriptType = stream.string.slice(stream.pos - 100, stream.pos).match(/\btype\s*=\s*("[^"]+"|'[^']+'|\S+)[^<]*$/i);
13
scriptType = scriptType && scriptType[1];
14
if (!scriptType || scriptType.match(/(text|application)\/(java|ecma)script/i)) {
15
state.token = javascript;
0 commit comments