diff options
author | Kruti Shah | 2012-07-17 12:40:00 -0700 |
---|---|---|
committer | Kruti Shah | 2012-07-17 12:40:00 -0700 |
commit | bf2d7bdb22c28089dc1067bc9094ebc590daac87 (patch) | |
tree | 2156d9920ea1b7db49ed6460545fea7cda121bae /imports/codemirror/mode/htmlmixed | |
parent | 7e2c2dbd040ed79a3f0678f91bd4b6db9cf69231 (diff) | |
parent | b4b3e45d6684e77d361b4f8ca5be4889428320c5 (diff) | |
download | ninja-bf2d7bdb22c28089dc1067bc9094ebc590daac87.tar.gz |
Merge branch 'refs/heads/TimelineUberJD' into Timeline-local-kruti
Diffstat (limited to 'imports/codemirror/mode/htmlmixed')
-rw-r--r-- | imports/codemirror/mode/htmlmixed/htmlmixed.js | 4 |
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 | ||
83 | CodeMirror.defineMIME("text/html", "htmlmixed"); | 85 | CodeMirror.defineMIME("text/html", "htmlmixed"); |