matchBrackets
matchBrackets(
rainbowBrackets,pairs):BracketMatcher
Defined in: extensions/matchBrackets/index.ts:44
Extension that matches punctuation tokens together. Intended for matching brackets.
Without rainbow brackets, this extension can be added dynamically with no downsides.
Parameters
Section titled “Parameters”rainbowBrackets
Section titled “rainbowBrackets”boolean = true
Whether to add extra classes to brackets for styling. Defaults
to true. When enabled, adding the extension dynamically will force a rerender to add
these extra classes.
string = "()[]{}"
Which characters to match together. The opening character must be followed
by the corresponding closing character. Defaults to "()[]{}".