403Webshell
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/idlelib/__pycache__/parenmatch.cpython-315.opt-1.pyc
R
>lqj�c��Qs]QHGs]QHGsQQQQQQ-s]dsQ	Q
2s\O2\	Q6Xc]QH(Gs\Q
]Q5P!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�`�\sQs]
snQsQsQsQs\Q2s	Qs
QsQsQs
Q	sQQ
ksQsQsQ
sQsQ\Q\Q\Q\-sQsQsQsUsP!)�
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��VmUOUmUOOUOUO2]Um]UmP!)�)�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�$�[OQQQQQ5Um[OQQQQQQ5Um[OQQQ	Q
]Q5Um[O
[O2Q2UmP!)�
extensionsr
�style�opener)�defaultzflash-delay�int��)�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��UO%fDUOFD)oUOOUOU2J+	P	UmP!P!)z5Activate mechanism to restore text from highlighting.)r�RESTORE_SEQUENCESr�	event_addr�r�seqs& r�activate_restore�ParenMatch.activate_restore>sE���%�%�%��-�-���	�	�#�#�D�$C�$C�S�I�.�%)�D�"�&rc��UO%cDUOFD)oUOOUOU2J+	P
UmP!P!)zRemove restore event bindings.)rr/r�event_deleterr1s& r�deactivate_restore�ParenMatch.deactivate_restoreEsE���!�!�!��-�-���	�	�&�&�t�'F�'F��L�.�%*�D�"�"rc�r�[UOQ2O2oUOU2Q!)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��UOOQ2oU[7cP![UOQ2oUO2%fP!UO
[U*P	2oUOU2P!)zHandle user input of closer.z	insert-1c)r�get�_openersrr
�
is_in_coder<r=)rr>�closer�hpr?s&&   r�paren_closed_event�ParenMatch.paren_closed_eventSsg�������{�+����!��
����{�
3���}�}�����-�-�h�v�.>��E������(�rc�V�Ue/UO%cUOO2P!UO2UOOUOUO2V2UO%c
UOLUO2P!�N)r'rr!r3�tagfuncsrCr%�create_tag_expressionr&�set_timeout_last�set_timeout_none�rr?s&&rr=�ParenMatch.finish_paren_event`sv���?�t�y�y�y��I�I�N�N��������
�
���$�*�*�d�&@�&@�A�$�P�"&�"2�"2�"2��	�	� �1�1�
2�	5rc��UOOQ2UO2U9O]*
tmP!)zRemove effect of doing match.�paren)r�
tag_deleter7r)rr>s&&rr�ParenMatch.restore_eventks.���	�	���W�%����!������rc�L�VO6XcUO2P!P!rK)rr)r�timer_counts&&r�handle_restore_timer�ParenMatch.handle_restore_timerqs���,�,�&���� �'rc��UOOQU]*2UOOQUO2P!)z'Highlight the single paren that matchesrS)r�tag_add�
tag_configr*rPs&&r�create_tag_opener�ParenMatch.create_tag_openerxs4���	�	���'�7�1�:�.��	�	���W�d�&8�&8�9rc�L�UOOU]*2Q7cU]*Q*oL	U]*oUOOQU]*U]*Q*UQ*U2UOOQUO2P!)z#Highlight the left and right parens�+1crSz-1c�rrr�rrCr[r\r*�rr?�
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��UOOU]*2Q7cU]*Q*oL	U]*oUOOQU]*U2UOOQUO2P!)zHighlight the entire expressionr`rSrarbrcs&& rrM� ParenMatch.create_tag_expression�sf���9�9�=�=����$��7� ���E�)�J� ���J��	�	���'�7�1�:�z�:��	�	���W�d�&8�&8�9rrr�parens�
expressionc���U9O]*
tmVOUOOQ21QkoUOOO[V2P!)zKHighlight will remain until user input turns it off
or the insert has movedr:c��V1OOQ26wcUOU2P!UOOO[V2P!)r:)r�indexrXr
�
text_frame�after�CHECK_DELAY)�callmer�crms&&&&rrq�+ParenMatch.set_timeout_none.<locals>.callme�s=���	�	����1�1��)�)�!�,����'�'�-�-�k�6�Jr)rrrmr
rnrorp)rrqs& rrO�ParenMatch.set_timeout_none�sK��	
������ $���������2�	K�	
�����%�%�k�6�Brc��U9O]*
tmUOOOUOVO1Qk2P!)zFThe last highlight created will be removed after FLASH_DELAY millisecsc�&�UOU2!rK)rX)rrrs&&r�<lambda>�-ParenMatch.set_timeout_last.<locals>.<lambda>�s��d�.G�.G��.Jr)rr
rnror&)rs&rrN�ParenMatch.set_timeout_last�s>��	
�����������%�%�������J�	Lr)rr
rr)z
<KeyPress>z
<ButtonPress>z<Key-Return>z<Key-BackSpace>rK)�__name__�
__module__�__qualname__�__firstlineno__�__doc__rr/r�classmethodr,r3r7r@rHr=rrXr]rerMrLrOrN�__static_attributes__�__classdictcell__)�
__classdict__s@rr
r

s������("@��<��	#��<��<�*�+���	5��!�:�
:�:�	�#��$��#��+�	
�H�
C�L�Lrr
�__main__)�mainz!idlelib.idle_test.test_parenmatch)�	verbosity)r~�idlelib.hyperparserr�idlelib.configrrDrpr
r,rz�unittestr��rr�<module>r�sc���,�#���C��C��$����bL�bL�J�����z����	,��:�r

Youez - 2016 - github.com/yon3zu
LinuXploit