Hacked By AnonymousFox
���]9 � @ sw d d l Z e j d � j Z e j d � j Z e j d � Z e j d � Z e j d � Z [ Gd d � d � Z d S) � Nz[a-zA-Z][-_.a-zA-Z0-9]*\s*z(\'[^\']*\'|"[^"]*")\s*z--\s*>z ]\s*]\s*>z]\s*>c @ s� e Z d Z d d � Z d d � Z d d � Z d d � Z d d
� Z d Z d d
� Z d d d � Z
d d d � Z d d � Z d d � Z
d d � Z d d � Z d d � Z d d � Z d d � Z d! S)"�
ParserBasec C s | j t k r t d � � d S)Nz)_markupbase.ParserBase must be subclassed)� __class__r �RuntimeError)�self� r �0/opt/alt/python35/lib64/python3.5/_markupbase.py�__init__ s zParserBase.__init__c C s t d � � d S)Nz.subclasses of ParserBase must override error())�NotImplementedError)r �messager r r �error s zParserBase.errorc C s d | _ d | _ d S)N� r )�lineno�offset)r r r r �reset$ s zParserBase.resetc C s | j | j f S)N)r
r )r r r r �getpos( s zParserBase.getposc C s� | | k r | S| j } | j d | | � } | rm | j | | _ | j d | | � } | | d | _ n | j | | | _ | S)N�
r )�rawdata�countr
�rindexr )r �i�jr Znlines�posr r r � updatepos0 s zParserBase.updatepos� c
C sO | j } | d } | | | d � d k r5 | d S| | | d � d k rS d St | � } | | | d � d k r� | j | � S| | d k r� | j | � S| j | | � \ } } | d k r� | S| d k r� d | _ xh| | k rJ| | } | d k rJ| | d | � } | d k r5| j | � n
| j | � | d S| d
k r~t | | � } | sod S| j � } n� | d k r�| j | | � \ } } n� | | j k r�| d } nv | d k r"| d k r�| j
| d | � } q7| d k r| j d | � q7| j d � n | j d | | � | d k r� | Sq� Wd S)N� r �>�-r z--�[r Zdoctypez"'Z4abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ�attlist�linktype�link�elementz&unsupported '[' char in %s declarationz"unexpected '[' char in declarationz!unexpected %r char in declaration)r r ���r"