address review comments

This commit is contained in:
nightwing 2015-04-20 18:25:32 +04:00
commit 89b9a8ac72
2 changed files with 9 additions and 7 deletions

View file

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