
                         x    S r SSKrSSKJrJrJrJr  SSKJrJ	r	J
r
JrJrJrJr  SSKJrJr  S/r " S S\5      rg)z
pygments.lexers.stata
~~~~~~~~~~~~~~~~~~~~~

Lexer for Stata

:copyright: Copyright 2006-2023 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                      \ rS rSrSrSrSrSS/rSS/r/ S	Qr	\
R                  \
R                  -  r0 S
\" S5      \" S5      \" S5      \" S5      \" S5      \" S5      \" S5      S\4/_SS\R"                  S4S\R"                  S4S\R$                  S4S\R&                  S4/_SS\R$                  S4S\R$                  4S\R$                  S4S\R$                  4/_SS\R"                  S 4S\R"                  S!4S\R$                  S4S"\R"                  S4S\R"                  4/_SS#\R&                  S4S$\R"                  S4S\R&                  4/_SS#\S4S\R"                  4/_SS%\S&4S'\S(4/_S&S%\S4S)\S4S*\R*                  4\" S5      S\4/_S(S+\S4S*\R*                  4\" S5      S\4/_SS,\R.                  R0                  S-4S.\R.                  R0                  S/4S0\R.                  S14/_S1S0\R.                  S4S2\R.                  S4S,\R.                  R0                  S-4S.\R.                  R0                  S/4S\R.                  4/_S-S,\R.                  R0                  S4S3\R.                  R0                  S4S.\R.                  R0                  S/4S0\R.                  S14S4\R.                  R0                  4\" S5      /_S/S,\R.                  R0                  S-S4S.\R.                  R0                  S/S4S0\R.                  S1S4S5\R.                  R0                  S4/_S\" \S6S7S89\R8                  4\" \S9S6S89\4/_SS:\4S;\4/_SS<\ 4/_SS=\RB                  4S>\RB                  4S?\RB                  4S@\RB                  4/_r"SAr#gB)Cr      z,
For Stata do files.

.. versionadded:: 2.2
Statazhttp://www.stata.com/statadoz*.doz*.ado)ztext/x-stataz
text/statazapplication/x-stataroot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///.*?\n)r!   r    )r!   r   z.(?=\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 N)$__name__
__module____qualname____firstlineno____doc__nameurlaliases	filenames	mimetypesre	MULTILINEDOTALLflagsr   r   r   Single	MultilineSpecialr   Escaper	   VariableGlobalr   r   r   Functionr   r   r   r
   Othertokens__static_attributes__r&       (lib/third_party/pygments/lexers/stata.pyr   r      s    D
!C$G!IEIryy(EDJIHIJK H4L	
D 	$gnn6MN8W&&(89!7??4KL	
D* 	W&&0 w(()+W->->G7$$%
+D< 	'..13$gnn13W&&(8907>>"
=DN 	 GOOV,W^^V47??#	"
ODZ 	 D&!7>>""
[Df 	F-.!12
gDn 	FG$VV$&6H6N
oD| 	 &&1&6H6N	
}Db 	!5!57LMDMM((+>?4==-0
cDl 	4=='*4==&)!5!57LMDMM((*=>4==!
mDz 	!5!5w?DMM((&1DMM((*=>4==-0DMM(()FO 
{DJ 	!5!57LfUDMM((*=vF4==-8$--..7	
KDX 	%	J]]=<%H
YDf 	#X.$h/
gDp 	N
qD| 	-tzz:$djj17D

+	
}DFr?   )r+   r1   pygments.lexerr   r   r   r   pygments.tokenr   r   r	   r
   r   r   r   pygments.lexers._stata_builtinsr   r   __all__r   r&   r?   r@   <module>rE      s?    
 > >   N.V Vr?   