aboutsummaryrefslogtreecommitdiff
path: root/imports/codemirror/mode/htmlmixed
diff options
context:
space:
mode:
authorAnanya Sen2012-07-16 16:04:05 -0700
committerAnanya Sen2012-07-16 16:04:05 -0700
commit0e04fff0ea80fa5cbe96b8354db38bd334aea83a (patch)
tree212d164c0f83d80394e34f1df532ea0461ad328d /imports/codemirror/mode/htmlmixed
parent5146f224258929415adf4a8022e492454b4e2476 (diff)
downloadninja-0e04fff0ea80fa5cbe96b8354db38bd334aea83a.tar.gz
upgrade to codemirror 2.3
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com> Conflicts: js/code-editor/codemirror-ninja/theme/lesser-dark-ninja.css Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'imports/codemirror/mode/htmlmixed')
-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");