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:
parent
985566b38d
commit
73ad243936
1 changed files with 2 additions and 3 deletions
|
|
@ -80,9 +80,8 @@ oop.inherits(FoldMode, BaseFoldMode);
|
||||||
this.tagRe = /^(\s*)(<?(\/?)([-_a-zA-Z0-9:!]*)\s*(\/?)>?)/;
|
this.tagRe = /^(\s*)(<?(\/?)([-_a-zA-Z0-9:!]*)\s*(\/?)>?)/;
|
||||||
this._parseTag = function(tag) {
|
this._parseTag = function(tag) {
|
||||||
|
|
||||||
var match = this.tagRe.exec(tag);
|
var match = tag.match(this.tagRe);
|
||||||
var column = this.tagRe.lastIndex || 0;
|
var column = 0;
|
||||||
this.tagRe.lastIndex = 0;
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
value: tag,
|
value: tag,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue