python (3.12.0)
̑eY2 b d Z ddlmZ ddlZddlmZ eej ej z dz Z eej dz Z
ed D cg c] } e| e v c} Z
ed D cg c] } e| e
v c} Z G d d Zed k( rdd
lmZ edd
yyc c} w c c} w )zProvide 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 Z e Zd Zd Zd Zd Zd ZddZ eh d Z e
d ZdZd Z
y
)HyperParserc || _ |j x| _ }t j |j |j
}d } ||j
| }|j s|j D ]q }t ||z
d }t | dz } d|z }
|j |j | |
dz |j |j | }||dk( sq n |j xs d nV|j! d| }|r|d } nd } d|z }
|j |j | |
dz |j d |j"