From 51ed781953bc44bba3c70938aa57b856394cbc88 Mon Sep 17 00:00:00 2001 From: Ananya Sen Date: Mon, 27 Feb 2012 14:41:21 -0800 Subject: updating to codemirror 2.22 Signed-off-by: Ananya Sen --- imports/codemirror/mode/xmlpure/xmlpure.js | 5 +++++ 1 file changed, 5 insertions(+) mode change 100755 => 100644 imports/codemirror/mode/xmlpure/xmlpure.js (limited to 'imports/codemirror/mode/xmlpure/xmlpure.js') diff --git a/imports/codemirror/mode/xmlpure/xmlpure.js b/imports/codemirror/mode/xmlpure/xmlpure.js old mode 100755 new mode 100644 index 6102f51d..18d710cf --- a/imports/codemirror/mode/xmlpure/xmlpure.js +++ b/imports/codemirror/mode/xmlpure/xmlpure.js @@ -15,6 +15,7 @@ CodeMirror.defineMode("xmlpure", function(config, parserConfig) { var STYLE_ATTRIBUTE = "attribute"; var STYLE_WORD = "string"; var STYLE_TEXT = "atom"; + var STYLE_ENTITIES = "string"; var TAG_INSTRUCTION = "!instruction"; var TAG_CDATA = "!cdata"; @@ -290,6 +291,10 @@ CodeMirror.defineMode("xmlpure", function(config, parserConfig) { state.tokenize = parseElementTagName; return STYLE_ELEMENT_NAME; } + } else if(stream.eat("&")) { + stream.eatWhile(/[^;]/); + stream.eat(";"); + return STYLE_ENTITIES; } else { // new context: text pushContext(state, TAG_TEXT); -- cgit v1.2.3