|
Server : Apache System : Linux server.mata-lashes.com 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64 User : matalashes ( 1004) PHP Version : 8.1.29 Disable Function : NONE Directory : /proc/17567/root/usr/local/lib64/python3.6/site-packages/jinja2/__pycache__/ |
Upload File : |
3
E�Kd�t � @ s� U d Z ddlZddlZddlmZ ddlmZ ddlm Z ddl
mZ ddl
mZ dd lmZ ejrxddlZdd
lmZ ed�Zejejdf ejd
�Zejd�Zejdej�ZejdejejB �Z ejdejejB �Z!e d�Z"e d�Z#e d�Z$e d�Z%e d�Z&e d�Z'e d�Z(e d�Z)e d�Z*e d�Z+e d�Z,e d�Z-e d�Z.e d�Z/e d �Z0e d!�Z1e d"�Z2e d#�Z3e d$�Z4e d%�Z5e d&�Z6e d'�Z7e d(�Z8e d)�Z9e d*�Z:e d+�Z;e d,�Z<e d-�Z=e d.�Z>e d/�Z?e d0�Z@e d1�ZAe d2�ZBe d3�ZCe d4�ZDe d5�ZEe d6�ZFe d7�ZGe d8�ZHe d9�ZIe d:�ZJe d;�ZKe d<�ZLe d=�ZMe d>�ZNe d?�ZOe d@�ZPe dA�ZQe dB�ZRe"e:e&e)e2e1e5e;e-e7e.e8e,e6e(e3e*e+e/e0e#e'e$e4e%e9dC�ZSdDdE� eSjT� D �ZUeVeS�eVeU�k�s�tWdF��ejdGdHjXdIdJ� eYeSdKdL� dM�D ��� dN��ZZe[eHeJeIe<eMeNeOg�Z\e[e<ePeJeOg�Z]e^e^dO�dPdQ�Z_dRe^dS�dTdU�Z`e^e^dV�dWdX�Zae^ebdY�dZd[�Zcd\ejdeje^e^f d]�d^d_�ZeG d`da� da�ZfG dbdR� dRejg�ZhG dcdd� dd�ZiG dedf� df�Zjd\dd]�dgdh�ZkG didj� djel�ZmG dkdl� dlejg�ZnG dmd� d�ZodS )nz�Implements a Jinja / Python combination lexer. The ``Lexer`` class
is used to do some preprocessing. It filters out invalid operators like
the bitshift operators we don't allow in templates. It separates
template code and python code in expressions.
� N)�literal_eval)�deque)�intern� )�pattern)�TemplateSyntaxError)�LRUCache)�Environment�2 �Lexerz\s+z(\r\n|\r|\n)z7('([^'\\]*(?:\\.[^'\\]*)*)'|"([^"\\]*(?:\\.[^"\\]*)*)")z�
(
0b(_?[0-1])+ # binary
|
0o(_?[0-7])+ # octal
|
0x(_?[\da-f])+ # hex
|
[1-9](_?\d)* # decimal
|
0(_?0)* # decimal zero
)
z�
(?<!\.) # doesn't start with a .
(\d+_)*\d+ # digits, possibly _ separated
(
(\.(\d+_)*\d+)? # optional fractional part
e[+\-]?(\d+_)*\d+ # exponent part
|
\.(\d+_)*\d+ # required fractional part
)
�addZassignZcolon�comma�div�dot�eq�floordiv�gtZgteqZlbraceZlbracketZlparen�ltZlteq�mod�mul�ne�pipe�powZrbraceZrbracketZrparenZ semicolon�sub�tilde�
whitespace�float�integer�name�string�operatorZblock_beginZ block_endZvariable_beginZvariable_endZ raw_beginZraw_endZ
comment_beginZcomment_end�commentZlinestatement_beginZlinestatement_endZlinecomment_beginZlinecomment_endZlinecomment�data�initial�eof)�+�-�/z//�*�%z**�~�[�]�(�)�{�}z==z!=�>z>=�<z<=�=�.�:�|�,�;c C s i | ]\}}||�qS � r9 )�.0�k�vr9 r9 �./tmp/pip-build-8nxjc3nm/jinja2/jinja2/lexer.py�
<dictcomp>� s r>