• Extension that matches punctuation tokens together. Intended for matching brackets.

    The order inside openingBrackets and closingBrackets determines which characters are matched together.

    Parameters

    • rainbowBrackets: boolean = true

      Whether to add extra classes to brackets for styling. Defaults to true.

    • openingBrackets: string = "([{"

      Defaults to "([{".

    • closingBrackets: string = ")]}"

      Defaults to ")]}".

      Adding the extension dynamically, will force a rerender to add those extra classes.

      Without rainbow brackets, this extension can be added dynamically with no side effects.

    Returns BracketMatcher

Generated using TypeDoc