Addresses an issue where IE8 does not properly handle the RegExp in _parseTag, causing folding not to work for the XML mode (or modes that inherit XML). Tested XML mode in IE8/9 and major browsers. Should resolve ajaxorg/ace#1384

This commit is contained in:
Ryan Griffith 2013-04-24 15:23:48 -04:00
commit 73ad243936

View file

@ -80,9 +80,8 @@ oop.inherits(FoldMode, BaseFoldMode);
this.tagRe = /^(\s*)(<?(\/?)([-_a-zA-Z0-9:!]*)\s*(\/?)>?)/;
this._parseTag = function(tag) {
var match = this.tagRe.exec(tag);
var column = this.tagRe.lastIndex || 0;
this.tagRe.lastIndex = 0;
var match = tag.match(this.tagRe);
var column = 0;
return {
value: tag,