7Ȍ \ d Z ddlZddlZddlmZ ddlmZ ddlmZ i Z G d d Z dS )zGprovides the Lexer class for parsing template strings into parse trees. N) exceptions) parsetree)adjust_whitespacec e Zd Z ddZed ZddZd Zd Zd Z e j d Zd Z d Zd Zd Zd Zd Zd Zd Zd Zd ZdS )LexerNc & || _ || _ t j | j | _ d| _ d| _ d| _ d| _ g | _ g | _ g | _ || _ | g | _ d S t |d s |g| _ d S || _ d S )N r __iter__)textfilenamer TemplateNodetemplatematched_linenomatched_charposlinenomatch_positiontagcontrol_line ternary_stackencodingpreprocessorhasattr)selfr r input_encodingr s \/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/mako/lexer.py__init__zLexer.__init__ s !.t}== & "Dz22 -!-D ,D c 8 | j | j | j | j dS )N)sourcer posr )r r r r )r s r exception_kwargszLexer.exception_kwargs* s) i)' r c t ||f }nG# t $ r: |rt j || nt j | }|t ||f<