BracketMatcher
Defined in: extensions/matchBrackets/index.ts:7
Extends
Section titled “Extends”BracketMatcher(
editor,options):any
Defined in: extensions/matchBrackets/index.ts:7
Parameters
Section titled “Parameters”editor
Section titled “editor”PrismEditor<{ }>
options
Section titled “options”EditorOptions<{ }>
Returns
Section titled “Returns”any
Properties
Section titled “Properties”brackets
Section titled “brackets”
readonlybrackets:Bracket[]
Defined in: extensions/matchBrackets/index.ts:17
Array of tuples containing in the following order:
- The bracket’s
Token - Its starting position
- Its ending position
- Its level of nesting
- Its text content
- Whether it’s an opening bracket
readonlypairs: (number|undefined)[]
Defined in: extensions/matchBrackets/index.ts:19
Array mapping the index of a bracket to the index of its matching bracket.