B
Ç©Š¢WÌã @ sf d Z ddlmZ ddlmZ ddddœZdZG d d
„ d
ƒZe ¡ e dkrbddl
mZ ed
dd dS )zàParenMatch -- for parenthesis matching.
When you hit a right paren, the cursor should move briefly to the left
paren. Paren here is used generically; the matching applies to
parentheses, square brackets, and curly braces.
é )ÚHyperParser)ÚidleConfú(ú[Ú{)ú)ú]Ú}éd c @ sœ e Zd ZdZdZdZdd„ Zedd„ ƒZdd „ Z d
d„ Z
dd
„ Zdd„ Zdd„ Z
d"dd„Zdd„ Zdd„ Zdd„ Zdd„ ZeeeedœZdd„ Zd d!„ ZdS )#Ú
ParenMatcha' Highlight matching openers and closers, (), [], and {}.
There are three supported styles of paren matching. When a right
paren (opener) is typed:
opener -- highlight the matching left paren (closer);
parens -- highlight the left and right parens (opener and closer);
expression -- highlight the entire expression from opener to closer.
(For back compatibility, 'default' is a synonym for 'opener').
Flash-delay is the maximum milliseconds the highlighting remains.
Any cursor movement (key press or click) before that removes the
highlight. If flash-delay is 0, there is no maximum.
TODO:
- Augment bell() with mismatch warning in status window.
- Highlight when cursor is moved to the right of a closer.
This might be too expensive to check.
z<