minor fix to xml tokenizer

This commit is contained in:
Fabian Jakobs 2010-04-14 16:04:22 +02:00
commit 960d6abc34
3 changed files with 24 additions and 3 deletions

View file

@ -14,7 +14,7 @@ ace.Tokenizer = function(rules) {
;
this.regExps[key] = new RegExp("(?:(" + ruleRegExps.join(")|(")
+ ")|(.))", "g");
+ ")|(.+))", "g");
}
};

View file

@ -19,14 +19,14 @@ ace.mode.XmlHighlightRules = function() {
next : "comment"
}, {
token : "text", // opening tag
regex : "<",
regex : "<\\/?",
next : "tag"
}, {
token : "text",
regex : "\\s+"
}, {
token : "text",
regex : ".+"
regex : "[^<]+"
} ],
tag : [ {