0.3.1 • Published 7 months ago

@cookshack/codemirror-bracket-matching v0.3.1

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

@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.

0.3.1

7 months ago

0.3.0

7 months ago

0.2.0

7 months ago

6.10.4-0

7 months ago

6.10.3

7 months ago