bracketMatching

fun bracketMatching(config: BracketMatchingConfig = BracketMatchingConfig()): Extension

Extension that highlights matching brackets near the cursor.

On each selection change, looks at the character before and after the cursor. If either is a bracket, highlights both it and its match (or just the unmatched bracket if no match is found).