| Server IP : 121.121.20.254 / Your IP : 216.73.216.145 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python315/Lib/idlelib/__pycache__/ |
Upload File : |
R
>lqj� c � � Q s ] QHGs ] QHGs QQQQQQ-s]ds Q Q
2 s\O 2 \ Q6X c ] QH(Gs \ Q
]Q5 P! P! )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�)�(�]�[�}�{c � ` � \ sQ s]
s n QsQsQsQ s\Q 2 s Q s
Q sQ sQ s
Q sQQ
ksQ sQ sQ
sQ sQ\Q\Q\Q\-sQ sQ sQsU sP! )�
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<<parenmatch-check-restore>>c � � Vm UO U m UO O U O U O 2 ] U m ] U m P! )� )�editwin�text�bind�RESTORE_VIRTUAL_EVENT_NAME�
restore_event�counter�is_restore_active)�selfr
s &&�'C:\Python315\\Lib\idlelib\parenmatch.py�__init__�ParenMatch.__init__( sF � ����L�L�� � �����$�9�9��,�,� .����!"��� c �$ � [ O Q QQQQ5 U m [ O Q QQQQQ5 U m [ O Q QQ Q
]Q5 U m [ O
[ O 2 Q2 U m P! )�
extensionsr
�style�opener)�defaultzflash-delay�int�� )�typer �bell�bool�hilite)r � GetOption�STYLE�FLASH_DELAY�BELL�GetHighlight�CurrentTheme�
HILITE_CONFIG)�clss &r �reload�ParenMatch.reload3 s{ � ��&�&���g�x�A�� �"�,�,��\�-�e�C�Q����%�%��\�&�v�q�J���$�1�1�(�2G�2G�2I�2:�<��r c � � U O % fD U O F D) oU O O U O U2 J+ P U m P! P! )z5Activate mechanism to restore text from highlighting.)r �RESTORE_SEQUENCESr � event_addr �r �seqs & r �activate_restore�ParenMatch.activate_restore>