fix bracket matching in modes imported from textmate

This commit is contained in:
nightwing 2015-04-19 20:29:28 +04:00
commit 2008ab813f

View file

@ -117,7 +117,7 @@ function BracketMatch() {
typeRe = new RegExp(
"(\\.?" +
token.type.replace(".", "\\.").replace("rparen", ".paren")
.replace(/\b(?:end|start|begin)\b/, "")
.replace(/\b(?:end)\b/, "(?:start|begin)")
+ ")+"
);
}
@ -174,7 +174,7 @@ function BracketMatch() {
typeRe = new RegExp(
"(\\.?" +
token.type.replace(".", "\\.").replace("lparen", ".paren")
.replace(/\b(?:end|start|begin)\b/, "")
.replace(/\b(?:start|begin)\b/, "end")
+ ")+"
);
}