Skip to content
Snippets Groups Projects
Commit 8292921e authored by Andrey Lushnikov's avatar Andrey Lushnikov Committed by Marijn Haverbeke
Browse files

Support upper-case SCRIPT tags in htmlmixed mode

parent 081ba77e
No related branches found
No related tags found
No related merge requests found
......@@ -30,6 +30,7 @@ CodeMirror.defineMode("htmlmixed", function(config, parserConfig) {
function html(stream, state) {
var tagName = state.htmlState.tagName;
if (tagName) tagName = tagName.toLowerCase();
var style = htmlMode.token(stream, state.htmlState);
if (tagName == "script" && /\btag\b/.test(style) && stream.current() == ">") {
// Script block: mode to change to depends on type attribute
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment