minor fix to xml tokenizer
This commit is contained in:
parent
7399cc94e3
commit
960d6abc34
3 changed files with 24 additions and 3 deletions
|
|
@ -14,7 +14,7 @@ ace.Tokenizer = function(rules) {
|
|||
;
|
||||
|
||||
this.regExps[key] = new RegExp("(?:(" + ruleRegExps.join(")|(")
|
||||
+ ")|(.))", "g");
|
||||
+ ")|(.+))", "g");
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -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 : [ {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue