aboutsummaryrefslogtreecommitdiff
path: root/imports/codemirror/mode/htmlmixed/htmlmixed.js
diff options
context:
space:
mode:
authorValerio Virgillito2012-07-17 11:29:09 -0700
committerValerio Virgillito2012-07-17 11:29:09 -0700
commit58e86247524cc2d545bd6884f1b5c9fdba3b9164 (patch)
tree53305d354fce502ee39378babf47ace6c91ce2fd /imports/codemirror/mode/htmlmixed/htmlmixed.js
parent0f0cffd4df85e7adf5081fe66c768c70b2ead9b3 (diff)
parent4f737b24c19ddc02d20f9783b8b080fc6ef11142 (diff)
downloadninja-58e86247524cc2d545bd6884f1b5c9fdba3b9164.tar.gz
Merge branch 'refs/heads/master' into v0.7.1
Diffstat (limited to 'imports/codemirror/mode/htmlmixed/htmlmixed.js')
-rw-r--r--imports/codemirror/mode/htmlmixed/htmlmixed.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/imports/codemirror/mode/htmlmixed/htmlmixed.js b/imports/codemirror/mode/htmlmixed/htmlmixed.js
index c66a6583..a6c62c9d 100644
--- a/imports/codemirror/mode/htmlmixed/htmlmixed.js
+++ b/imports/codemirror/mode/htmlmixed/htmlmixed.js
@@ -73,11 +73,13 @@ CodeMirror.defineMode("htmlmixed", function(config, parserConfig) {
73 }, 73 },
74 74
75 compareStates: function(a, b) { 75 compareStates: function(a, b) {
76 if (a.mode != b.mode) return false;
77 if (a.localState) return CodeMirror.Pass;
76 return htmlMode.compareStates(a.htmlState, b.htmlState); 78 return htmlMode.compareStates(a.htmlState, b.htmlState);
77 }, 79 },
78 80
79 electricChars: "/{}:" 81 electricChars: "/{}:"
80 } 82 }
81}); 83}, "xml", "javascript", "css");
82 84
83CodeMirror.defineMIME("text/html", "htmlmixed"); 85CodeMirror.defineMIME("text/html", "htmlmixed");