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:

Parameter Type Description
pos EditorPosition The position of the bracket to match.

Returns: MatchingBracketThe matching bracket result.