diff options
author | Ananya Sen | 2012-02-27 14:41:21 -0800 |
---|---|---|
committer | Ananya Sen | 2012-02-27 14:41:21 -0800 |
commit | 51ed781953bc44bba3c70938aa57b856394cbc88 (patch) | |
tree | 483bcacdcdcc6802d2d048b576406b111656fa05 /imports/codemirror/mode/xmlpure/xmlpure.js | |
parent | 15d00c49b522aa471d1ccfbbd33f5c0e721eb89e (diff) | |
download | ninja-51ed781953bc44bba3c70938aa57b856394cbc88.tar.gz |
updating to codemirror 2.22
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'imports/codemirror/mode/xmlpure/xmlpure.js')
-rw-r--r--[-rwxr-xr-x] | imports/codemirror/mode/xmlpure/xmlpure.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/imports/codemirror/mode/xmlpure/xmlpure.js b/imports/codemirror/mode/xmlpure/xmlpure.js index 6102f51d..18d710cf 100755..100644 --- a/imports/codemirror/mode/xmlpure/xmlpure.js +++ b/imports/codemirror/mode/xmlpure/xmlpure.js | |||
@@ -15,6 +15,7 @@ CodeMirror.defineMode("xmlpure", function(config, parserConfig) { | |||
15 | var STYLE_ATTRIBUTE = "attribute"; | 15 | var STYLE_ATTRIBUTE = "attribute"; |
16 | var STYLE_WORD = "string"; | 16 | var STYLE_WORD = "string"; |
17 | var STYLE_TEXT = "atom"; | 17 | var STYLE_TEXT = "atom"; |
18 | var STYLE_ENTITIES = "string"; | ||
18 | 19 | ||
19 | var TAG_INSTRUCTION = "!instruction"; | 20 | var TAG_INSTRUCTION = "!instruction"; |
20 | var TAG_CDATA = "!cdata"; | 21 | var TAG_CDATA = "!cdata"; |
@@ -290,6 +291,10 @@ CodeMirror.defineMode("xmlpure", function(config, parserConfig) { | |||
290 | state.tokenize = parseElementTagName; | 291 | state.tokenize = parseElementTagName; |
291 | return STYLE_ELEMENT_NAME; | 292 | return STYLE_ELEMENT_NAME; |
292 | } | 293 | } |
294 | } else if(stream.eat("&")) { | ||
295 | stream.eatWhile(/[^;]/); | ||
296 | stream.eat(";"); | ||
297 | return STYLE_ENTITIES; | ||
293 | } else { | 298 | } else { |
294 | // new context: text | 299 | // new context: text |
295 | pushContext(state, TAG_TEXT); | 300 | pushContext(state, TAG_TEXT); |