B
    `                 @   sr   d Z ddlZddlmZmZmZmZ ddlmZm	Z	m
Z
mZmZmZmZ ddlmZmZ dgZG dd deZdS )z
    pygments.lexers.stata
    ~~~~~~~~~~~~~~~~~~~~~

    Lexer for Stata

    :copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
    N)
RegexLexerdefaultincludewords)CommentKeywordNameNumberStringTextOperator)builtins_basebuiltins_functions
StataLexerc               @   s  e Zd ZdZdZddgZddgZddd	gZej	ej
B Zed
ededededededdefgdejdfdejdfdejdfdejdfgdejdfdejfdejdfdejfgdejdfdejd fdejdfd!ejdfdejfgd"ejdfd#ejdfdejfgd"edfdejfgd$ed%fd&ed'fgd$edfd(edfd)ejfeddefgd*edfd)ejfeddefgd+ejjd,fd-ejjd.fd/ejd0fgd/ejdfd1ejdfd+ejjd,fd-ejjd.fdejfgd+ejjdfd2ejjdfd-ejjd.fd/ejd0fd3ejjfedgd+ejjd,dfd-ejjd.dfd/ejd0dfd4ejjdfgeed5d6d7ejfeed8d5d7efgd9efd:efgd;efgd<ejfd=ejfd>ejfd?ejfgd@Z dAS )Br   zS
    For `Stata <http://www.stata.com/>`_ do files.

    .. versionadded:: 2.2
    ZStataZstatadoz*.doz*.adoztext/x-stataz
text/statazapplication/x-statacommentsstringsmacrosnumberskeywords	operatorsformat.z(^//|(?<=\s)//)(?!/)zcomments-double-slashz^\s*\*zcomments-starz/\*zcomments-blockz(^///|(?<=\s)///)zcomments-triple-slashz#pushz\*/\*z(\*/\s+\*(?!/)[^\n]*)|(\*/)z#popz///.*?\n)z#popzcomments-triple-slash)z#popzcomments-double-slashz.(?=\n)z\nz//.*?(?=\n)z`"zstring-compoundz(?<!`)"zstring-regularz"\'z\\\\|\\"|\\\$|\\`|\\\nz(")(?!\')|(?=\n)z\$(\{|(?=[$`]))zmacro-global-nestedz\$zmacro-global-name`zmacro-local'z\}z\wz\w{1,32}z\bz(?=\())prefixsuffixz	(^\s*|\s)z-|==|<=|>=|<|>|&|!=z\*|\+|\^|/|!|~|==|~=z>\b[+-]?([0-9]+(\.[0-9]+)?|\.[0-9]+|\.)([eE][+-]?[0-9]+)?[i]?\bz%-?\d{1,2}(\.\d{1,2})?[gfe]c?z%(21x|16H|16L|8H|8L)z'%-?(tc|tC|td|tw|tm|tq|th|ty|tg)\S{0,32}z%[-~]?\d{1,4}s)rootr   zcomments-blockzcomments-starzcomments-triple-slashzcomments-double-slashr   zstring-compoundzstring-regularr   zmacro-localzmacro-global-nestedzmacro-global-namer   r   r   r   N)!__name__
__module____qualname____doc__namealiases	filenames	mimetypesre	MULTILINEDOTALLflagsr   r   r   SingleZ	MultilineSpecialr
   ZEscaper   VariableZGlobalr   r   r   ZFunctionr   r   r   r	   ZOthertokens r.   r.   ]/home/kop/projects/devel/pgwui/test_venv/lib/python3.7/site-packages/pygments/lexers/stata.pyr      s   



















)r!   r&   Zpygments.lexerr   r   r   r   Zpygments.tokenr   r   r   r	   r
   r   r   Zpygments.lexers._stata_builtinsr   r   __all__r   r.   r.   r.   r/   <module>	   s   $