Skip to content

CodeMirrorEditor.findMatchingBracket method

CodeMirrorEditor › findMatchingBracket

Unofficial

Find the matching bracket for the bracket at the given position.

Signature:

findMatchingBracket(pos: EditorPosition): MatchingBracket

Parameters:

ParameterTypeDescription
posEditorPositionThe position of the bracket to match.

Returns: MatchingBracketThe matching bracket result.