Skip to content

Commit

Permalink
Fix determination of closing characters for «» and full-width brackets
Browse files Browse the repository at this point in the history
FIX: Fix an issue where the closing character for double-angle quotation marks and
full-width brackets was computed incorrectly.
  • Loading branch information
marijnh committed Feb 12, 2025
1 parent 7693f35 commit 68c2a97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/closebrackets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export function closeBrackets(): Extension {
return [inputHandler, bracketState]
}

const definedClosing = "()[]{}<>"
const definedClosing = "()[]{}<>«»»«[]{}"

function closing(ch: number) {
for (let i = 0; i < definedClosing.length; i += 2)
Expand Down

0 comments on commit 68c2a97

Please sign in to comment.