fix bracket matching in modes imported from textmate
This commit is contained in:
parent
ecb699aa11
commit
2008ab813f
1 changed files with 2 additions and 2 deletions
|
|
@ -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")
|
||||
+ ")+"
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue