euporie.core.widgets.inputs.HighlightMatchingBracketProcessor

class euporie.core.widgets.inputs.HighlightMatchingBracketProcessor(chars: str = '[](){}<>', max_cursor_distance: int = 1000)

When the cursor is on or right after a bracket, it highlights the matching bracket.

Parameters:

max_cursor_distance – Only highlight matching brackets when the cursor is within this distance. (From inside a Processor, we can’t know which lines will be visible on the screen. But we also don’t want to scan the whole document for matching brackets on each key press, so we limit to this value.)