Skip to content

Commit 3c149a9

Browse files
authored
fix: Fix bracket highlighting for brackets in open/close tags (#5108)
1 parent 0ae8dbb commit 3c149a9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/edit_session/bracket_match.js

+2
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ function BracketMatch() {
126126
"(\\.?" +
127127
token.type.replace(".", "\\.").replace("rparen", ".paren")
128128
.replace(/\b(?:end)\b/, "(?:start|begin|end)")
129+
.replace(/-close\b/, "-(close|open)")
129130
+ ")+"
130131
);
131132
}
@@ -183,6 +184,7 @@ function BracketMatch() {
183184
"(\\.?" +
184185
token.type.replace(".", "\\.").replace("lparen", ".paren")
185186
.replace(/\b(?:start|begin)\b/, "(?:start|begin|end)")
187+
.replace(/-open\b/, "-(close|open)")
186188
+ ")+"
187189
);
188190
}

0 commit comments

Comments
 (0)