0x1949 Team - FAZEMRX - MANAGER
Edit File: jslexer.cpython-310.pyc
o V��\� � @ s� d Z ddlmZ ddlZddlmZ eg d�edd�Zdd d ddd �Z e� dej�Ze� dej�Z e� d�Ze� dej�Ze� d�Ze� dej �Ze� d�Zedd�Zde� dej�fde� d�fde� d�fde� dejejB �fde fdefde� d ej�fd!e� d"ej�fd#e� d$d%�eeje�� �fd&e� d'ej�fd(e� d)ejejB �fgZd*d+� Zd,d-� Zd.d/� Zd2d0d1�ZdS )3z� babel.messages.jslexer ~~~~~~~~~~~~~~~~~~~~~~ A simple JavaScript 1.5 lexer which is used for the JavaScript extractor. :copyright: (c) 2013-2019 by the Babel Team. :license: BSD, see LICENSE for more details. � )� namedtupleN)�unichr)+�+�-�*�%z!=z==�<�>z<=z>=�=z+=z-=z*=z%=z<<z>>z>>>z<<=z>>=z>>>=�&z&=�|z|=z&&z||�^z^=�(�)�[�]�{�}�!�--�++�~�,�;�.�:T)�key�reverse��� � � )�b�f�n�r�tz[\w$_][\w\d$_]*z[\w$_][\w\d$_.]*[\w\d$_.]z/=?z%/(?:[^/\\]*(?:\\.[^/\\]*)*)/[a-zA-Z]*z(\r\n|\n|\r)z\\z[a-fA-F0-9]{1,4}�Tokenztype value linenoz\s+z<!--.*�linecommentz//.*�multilinecommentz /\*.*?\*/�dotted_name�name�numberzb( (?:0|[1-9]\d*) (\.\d+)? ([eE][-+]?\d+)? | (0x[a-fA-F0-9]+) )�jsx_tagz(?:</?[^>\s]+|/>)�operatorz(%s)r �template_stringz`(?:[^`\\]*(?:\\.[^`\\]*)*)`�stringzT( '(?:[^'\\]*(?:\\.[^'\\]*)*)' | "(?:[^"\\]*(?:\\.[^"\\]*)*)" )c C sV g }t D ]$\}}| s|rd|v rq|s|dkrq|dkr!|sqd}|�||f� q|S )ze Get a tokenization rule list given the passed syntax options. Internal to this module. �jsxr0 r+ r, )�_rules�append)r2 �dottedr0 �rules� token_type�rule� r9 �8/usr/lib/python3/dist-packages/babel/messages/jslexer.py� get_rules: s r; c C s | j dkr | jdv S | j dv S )zzA helper function that helps the tokenizer to decide if the current token may be followed by a division operator. r/ )r r r r r )r, r- r1 �regexp)�type�value)�tokenr9 r9 r: �indicates_divisionN s r@ c C sT | r| d | d kr| d dv sJ d��t �d| dd� �} g }|j}d} | �d|�}|dk r1nf|| ||� � | |d }|tv rJ|t| � nH|dv r�t�| |d �}|d ur�|�� }t|�dkr~z|t t |d��� W n tyx Y nw |d }q%||| � |�� }q%||� n||� |d }q&|t| �k r�|| |d � � d� |�S )z�Unquote a string with JavaScript rules. The string has to start with string delimiters (``'``, ``"`` or the back-tick/grave accent (for template strings).) r ���z"'`z)string provided is not properly delimitedz\1� �\�uU� N� � � � )�line_join_re�subr4 �find�escapes� uni_escape_re�match�group�lenr �int� ValueError�end�join)r1 �result�add�pos� escape_pos� next_char�escaped� escaped_valuer9 r9 r: �unquote_stringW sJ "�� �' r] c c s� � d}d}d}t | �}t|||d�}||k rm|D ]\} } | �| |�}|dur( nq|r4t�| |�}d} nt�| |�}d} |du rE|d7 }q|�� }| durZt| ||�} t| �}| V |t t� |��7 }|� � }||k sdS dS )z� Tokenize JavaScript/JSX source. Returns a generator of tokens. :param jsx: Enable (limited) JSX parsing. :param dotted: Read dotted names as single name token. :param template_string: Support ES6 template strings Fr rB )r2 r5 r0 Nr/ r<