Your IP : 18.218.5.216
o
6��f=9 � @ sT d dl Z e �d�jZe �d�jZe �d�Ze �d�Ze �d�Z[ G dd� d�ZdS ) � Nz[a-zA-Z][-_.a-zA-Z0-9]*\s*z(\'[^\']*\'|"[^"]*")\s*z--\s*>z ]\s*]\s*>z]\s*>c @ s� e Zd Z dd� Zdd� Zdd� Zdd� Zd Zd
d� Zd d
d�Z d dd�Z
dd� Zdd� Zdd� Z
dd� Zdd� Zdd� Zdd� ZdS )!�
ParserBasec C s | j tu r td��d S )Nz)_markupbase.ParserBase must be subclassed)� __class__r �RuntimeError��self� r �2/opt/alt/python310/lib64/python3.10/_markupbase.py�__init__ s
��zParserBase.__init__c C s d| _ d| _d S )N� r ��lineno�offsetr r r r �reset s
zParserBase.resetc C s | j | jfS �Nr r r r r �getpos$ s zParserBase.getposc C sd ||kr|S | j }|�d||�}|r(| j| | _|�d||�}||d | _|S | j| | | _|S )N�
r
)�rawdata�countr �rindexr
)r �i�jr Znlines�posr r r � updatepos, s �zParserBase.updatepos� c
C s� | j }|d }|||d � dkr|d S |||d � dv r!dS t|�}|||d � dkr4| �|�S || dkr?| �|�S | �||�\}}|dk rM|S |d krTd
| _||k r�|| }|dkr~||d |� }|d kru| �|� |d S | �|� |d S |dv r�t||�}|s�dS |� � }n>|dv r�| �||�\} }n1|| jv r�|d }n'|dkr�|d kr�| �
|d |�}n|d
v r�td| ��td��td|| ��|dk r�|S ||k sXdS )N� r
�>)�-r ���z--�[r Zdoctyper z"'Z4abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ> Zlinktype�element�link�attlistz&unsupported '[' char in %s declarationz"unexpected '[' char in declarationz!unexpected %r char in declaration)r �len�
parse_comment�parse_marked_section�
_scan_name�_decl_othercharsZhandle_decl�unknown_decl�_declstringlit_match�end�_parse_doctype_subset�AssertionError)
r r r r �nZdecltype�c�data�m�namer r r �parse_declaration<