3
.ßL]9  ã               @   sn   d Z ddlZddl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-2019 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
é    N)Ú
RegexLexerÚ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dAfdejdBf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d.fgd-ejdfd/e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d0ejjdfd+ejjd,fd-ejd.fd1ejjfd2ejjdfgd)ejjd*dfd+ejjd,dfd-ejd.dfd3ejjdfgeed4d5d6�ejfeed7d4d6�efgd8efd9e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d@S )Cr   zS
    For `Stata <http://www.stata.com/>`_ do files.

    .. versionadded:: 2.2
    ZStataZstataZdoz*.doz*.adoztext/x-stataz
text/statazapplication/x-stataÚcommentsÚstringsÚmacrosÚnumbersÚkeywordsÚ	operatorsÚformatÚ.z(^//|(?<=\s)//)(?!/)úcomments-double-slashz^\s*\*zcomments-starz/\*zcomments-blockz(^///|(?<=\s)///)úcomments-triple-slashz#pushz\*/\*z(\*/\s+\*(?!/)[^\n]*)|(\*/)ú#popz///.*?\nz.(?=\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)z\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)r   r   )r   r   ) Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚnameÚaliasesÚ	filenamesÚ	mimetypesÚreÚ	MULTILINEÚDOTALLÚflagsr   r
   r   ÚSingleZ	MultilineÚSpecialr	   ZEscaper   ÚVariableÚGlobalr   r   ZFunctionr   r   r   r   ZOtherÚtokens© r0   r0   ú;/tmp/pip-install-5sebvq2j/pygments/pygments/lexers/stata.pyr      s–   



















)r"   r'   Zpygments.lexerr   r   r   Zpygments.tokenr   r   r   r   r	   r
   r   Zpygments.lexers._stata_builtinsr   r   Ú__all__r   r0   r0   r0   r1   Ú<module>
   s   $