Skip to content

cookshack/codemirror-bracket-matching

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@cookshack/codemirror-bracket-matching

CodeMirror 6 extension for highlighting matching brackets.

Based on the builtin CodeMirror bracket matching, with two additional options for the config argument of bracketMatching:

directional

If true then matching picks which bracket to match based on whether the bracket is before or after the cursor.

This makes the bracket matching behave more like Emacs and Codium. Opening brackets only match when they are after the cursor. Closing brackets only match when they are before the cursor.

Overrides afterCursor.

Defaults to true.

enclosing

If true then the innermost pair of brackets are highlighted.

Overrides afterCursor and directional.

Defaults to false.

About

(MIRROR) CodeMirror 6 extension for bracket matching

Resources

License

Stars

Watchers

Forks