| Server IP : 3.138.164.131 / Your IP : 216.73.216.136 Web Server : Apache System : Linux ns1.techtime.me 4.18.0-147.8.1.el8.lve.1.x86_64 #1 SMP Mon Jun 29 09:55:57 EDT 2020 x86_64 User : injazaat ( 1471) PHP Version : 8.1.20 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python37/lib64/python3.7/idlelib/__pycache__/ |
Upload File : |
B
r}�cS2 � @ s� d Z ddlmZ ddlZddlmZ eejej d �Z eejd �Z
dd� ed�D �Zd d� ed�D �Z
G d
d� d�Zedkr�dd
lmZ eddd� dS )z�Provide advanced parsing abilities for ParenMatch and other extensions.
HyperParser uses PyParser. PyParser mostly gives information on the
proper indentation of code. HyperParser gives additional information on
the structure of code.
� )� iskeywordN)�pyparse�_c C s g | ]}t |�tk�qS � )�chr�_ASCII_ID_CHARS)�.0�xr r �8/opt/alt/python37/lib64/python3.7/idlelib/hyperparser.py�
<listcomp> s r � c C s g | ]}t |�tk�qS r )r �_ASCII_ID_FIRST_CHARS)r r r r r
r s c @ s\ e Zd Zdd� Zdd� Zdd� Zdd� Zddd�Zed
ddh�Z e
dd� �ZdZdd� Z
dS )�HyperParserc
sJ |� _ |j � _}t�|j|j�}dd� }||�|��}|js�xh|jD ]^}t || d�}t
|�d } d| }
|�|�| |
�d � |�
|�| ��}|dk s�|dkrFP qFW |�|p�d� nF|�d |�}|r�|d } nd
} d| }
|�|�| |
�d � |�d� |jdd� � _|
� _|�� � _� fdd
�tt� j��D �� _� �|� dS )z;To initialize, analyze the surroundings of the given index.c S s t t| ��S )N)�int�float)�indexr r r
�
index2line"