3

V'ícã@srdZddlZddlmZmZmZmZddlmZm	Z	m
Z
mZmZm
Z
mZddlmZmZdgZGdd„deƒZdS)z¾
    pygments.lexers.stata
    ~~~~~~~~~~~~~~~~~~~~~

    Lexer for Stata

    :copyright: Copyright 2006-2022 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ªeZdZdZdZdZddgZddgZdd	d
gZe	j
e	jBZe
dƒe
dƒe
d
ƒe
dƒe
dƒe
dƒe
dƒdefgdejdfdejdfdejdfdejdfgdejdfdejfdejdfdejfgdejdAfdejdBfdejdfd ejdfdejfgd!ejdfd"ejdfdejfgd!edfdejfgd#ed$fd%ed&fgd#edfd'edfd(ejfe
d
ƒdefgd)edfd(ejfe
d
ƒdefgd*ejjd+fd,ejjd-fd.ejd/fgd.ejdfd0ejdfd*ejjd+fd,ejjd-fdejfgd*ejjdfd1ejjdfd,ejjd-fd.ejd/fd2ejjfedƒgd*ejjd+dfd,ejjd-dfd.ejd/dfd3ejjdfgeed4d5d6ejfeed7d4d6efgd8efd9efgd:efgd;ej fd<ej fd=ej fd>ej fgd?œZ!d@S)Crz8
    For Stata do files.

    .. versionadded:: 2.2
    ZStatazhttp://www.stata.com/ZstataZdoz*.doz*.adoztext/x-stataz
text/statazapplication/x-stataÚcommentsÚstringsÚmacrosÚnumbersÚkeywordsÚ	operatorsÚformatÚ.z(^//|(?<=\s)//)(?!/)úcomments-double-slashz^\s*\*z
comments-starz/\*zcomments-blockz(^///|(?<=\s)///)úcomments-triple-slashz#pushz\*/\*z(\*/\s+\*(?!/)[^\n]*)|(\*/)ú#popz///.*?\nz.(?=\n)z\nz//.*?(?=\n)z`"zstring-compoundz(?<!`)"zstring-regularz"\'z\\\\|\\"|\\\$|\\`|\\\nz(")(?!\')|(?=\n)z\$(\{|(?=[$`]))zmacro-global-nestedz\$zmacro-global-nameú`zmacro-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)Úrootrzcomments-blockz
comments-starzcomments-triple-slashzcomments-double-slashrzstring-compoundzstring-regularrzmacro-localzmacro-global-nestedzmacro-global-namerrrrN)rr)rr)"Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚnameÚurlÚaliasesÚ	filenamesÚ	mimetypesÚreÚ	MULTILINEÚDOTALLÚflagsrrrÚSingleZ	MultilineÚSpecialr
ZEscaperÚVariableÚGlobalrrrZFunctionr
rrr	ZOtherÚtokens©r2r2ú9/tmp/pip-build-gk9425m9/Pygments/pygments/lexers/stata.pyrs˜



















)r#r)Zpygments.lexerrrrrZpygments.tokenrrrr	r
rrZpygments.lexers._stata_builtinsr
rÚ__all__rr2r2r2r3Ú<module>	s$