Your IP : 216.73.216.213


Current Path : /opt/alt/python37/lib/python3.7/site-packages/pygments/lexers/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib/python3.7/site-packages/pygments/lexers/__pycache__/pawn.cpython-37.pyc

B

̽�\��@stdZddlmZddlmZmZmZmZmZm	Z	m
Z
mZmZddl
mZddgZGdd�de�ZGdd�de�Zd	S)
z�
    pygments.lexers.pawn
    ~~~~~~~~~~~~~~~~~~~~

    Lexers for the Pawn languages.

    :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�)�
RegexLexer)	�Text�Comment�Operator�Keyword�Name�String�Number�Punctuation�Error)�get_bool_opt�SourcePawnLexer�	PawnLexerc@s�eZdZdZdZdgZdgZdgZdZdZ	de
jd	fd
e
jdfde	d
e
jd	fde	de
jdfdefdefdefde
j
fde
jfdefdedfdejfdejfdejfdejfdejfdejfdefdefdefd efd!ejfd"ejfd#efgd$ed%fd&ejfd'efdefd(efgd)e
jfd*e
jfd+e
j
d%fd,e
jfd-e
jfde
jd%fgd.e
jd/fd0e
jd%fd1e
fgd2�Zed3�Z d4d5�Z!d6d7�Z"d8S)9r
z]
    For SourcePawn source code with preprocessor directives.

    .. versionadded:: 1.6
    Z
SourcePawn�spz*.spztext/x-sourcepawnz(?:\s|//.*?\n|/\*.*?\*/)+z\s*(?:/[*].*?[*]/\s*)*z^#if\s+0�if0z^#�macro�^z#if\s+0�#z\nz\s+z\\\nz/(\\\n)?/(\n|(.|\n)*?[^\\]\n)z/(\\\n)?\*(.|\n)*?\*(\\\n)?/z[{}]zL?"�stringz4L?'(\\.|\\[0-7]{1,3}|\\x[a-fA-F0-9]{1,2}|[^\\\'\n])'z'(\d+\.\d*|\.\d+|\d+)[eE][+-]?\d+[LlUu]*z(\d+\.\d*|\.\d+|\d+[fF])[fF]?z0x[0-9a-fA-F]+[LlUu]*z0[0-7]+[LlUu]*z
\d+[LlUu]*z\*/z[~!%^&*+=|?:<>/-]z[()\[\],.;]zs(case|const|continue|native|default|else|enum|for|if|new|operator|public|return|sizeof|static|decl|struct|switch)\bz(bool|Float)\bz(true|false)\bz[a-zA-Z_]\w*�"z#popz/\\([\\abfnrtv"\']|x[a-fA-F0-9]{2,4}|[0-7]{1,3})z	[^\\"\n]+z\\z[^/\n]+z/\*(.|\n)*?\*/z//.*?\n�/z	(?<=\\)\nz^\s*#if.*?(?<!\\)\nz#pushz^\s*#endif.*?(?<!\\)\nz.*?\n)�rootrrr)N�Action�bool�FloatZPluginr�anyZ	AdminFlagZOverrideTypeZOverrideRuleZImmunityTypeZGroupIdZAdminIdZ
AdmAccessModeZAdminCachePartZCookieAccessZ
CookieMenuZCookieMenuActionZNetFlowZConVarBoundsZQueryCookieZReplySourceZConVarQueryResultZConVarQueryFinishedZFunctionrZIdentityZPluginStatusZ
PluginInfoZDBResultZ
DBBindTypeZ
DBPriorityZPropTypeZ
PropFieldTypeZMoveTypeZ
RenderModeZRenderFxZ
EventHookModeZ	EventHook�FileTypeZFileTimeModeZPathTypeZ	ParamTypeZExecTypeZ
DialogType�HandleZKvDataTypesZNominateResultZ	MapChangeZ	MenuStyleZ
MenuActionZ
MenuSourceZ
RegexErrorZSDKCallTypeZ
SDKLibraryZSDKFuncConfSourceZSDKTypeZ
SDKPassMethodZRayTypeZTraceEntityFilterZListenOverrideZ	SortOrderZSortTypeZ
SortFunc2DZAPLResZFeatureTypeZ
FeatureStatusZ	SMCResultZSMCErrorZTFClassTypeZTFTeamZTFCondZTFResourceType�TimerZ
TopMenuActionZTopMenuObjectTypeZTopMenuPositionZ
TopMenuObjectZUserMsgcKsFt|dd�|_t�|_|jr4ddlm}|j�|�tj|f|�dS)NZ	sourcemodTr)�	FUNCTIONS)	r�smhighlighting�set�
_functionsZ#pygments.lexers._sourcemod_builtinsr�updater�__init__)�self�optionsr�r'�E/opt/alt/python37/lib/python3.7/site-packages/pygments/lexers/pawn.pyr$ms
zSourcePawnLexer.__init__ccs\xVt�||�D]F\}}}|tkrH|jrH||jkr8tj}n||jkrHtj}|||fVqWdS)N)	r�get_tokens_unprocessedrr �SM_TYPESr�Typer"ZBuiltin)r%�text�index�token�valuer'r'r(r)ws

z&SourcePawnLexer.get_tokens_unprocessedN)#�__name__�
__module__�__qualname__�__doc__�name�aliases�	filenames�	mimetypes�_ws�_ws1r�Preprocr�Single�	Multiliner
r�Charr	r�Hex�Oct�Integerrrrr+�Constantr�Escape�tokensr!r*r$r)r'r'r'r(r
sb





c@sveZdZdZdZdgZdddgZdgZdZd	Z	d
e
jdfde
jd
fde	de
jdfde	de
jd
fdefdefdefde
j
fde
jfdefdedfdejfdejfdejfdejfdejfdejfdefd efd!efd"efd#ejfd$ejfd%efgd&ed'fd(ejfd)efdefd*efgd+e
jfd,e
jfd-e
j
d'fd.e
jfd/e
jfde
jd'fgd0e
jd1fd2e
jd'fd3e
fgd4�Zd5S)6rz:
    For Pawn source code.

    .. versionadded:: 2.0
    ZPawnZpawnz*.pz*.pwnz*.incztext/x-pawnz (?:\s|//.*?\n|/[*][\w\W]*?[*]/)+z\s*(?:/[*].*?[*]/\s*)*z^#if\s+0rz^#rrz#if\s+0rz\nz\s+z\\\nz/(\\\n)?/(\n|(.|\n)*?[^\\]\n)z/(\\\n)?\*[\w\W]*?\*(\\\n)?/z[{}]zL?"rz4L?'(\\.|\\[0-7]{1,3}|\\x[a-fA-F0-9]{1,2}|[^\\\'\n])'z'(\d+\.\d*|\.\d+|\d+)[eE][+-]?\d+[LlUu]*z(\d+\.\d*|\.\d+|\d+[fF])[fF]?z0x[0-9a-fA-F]+[LlUu]*z0[0-7]+[LlUu]*z
\d+[LlUu]*z\*/z[~!%^&*+=|?:<>/-]z[()\[\],.;]z�(switch|case|default|const|new|static|char|continue|break|if|else|for|while|do|operator|enum|public|return|sizeof|tagof|state|goto)\bz(bool|Float)\bz(true|false)\bz[a-zA-Z_]\w*rz#popz/\\([\\abfnrtv"\']|x[a-fA-F0-9]{2,4}|[0-7]{1,3})z	[^\\"\n]+z\\z[^/\n]+z/\*(.|\n)*?\*/z//.*?\nrz	(?<=\\)\nz^\s*#if.*?(?<!\\)\nz#pushz^\s*#endif.*?(?<!\\)\nz.*?\n)rrrrN)r0r1r2r3r4r5r6r7r8r9rr:rr;r<r
rr=r	rr>r?r@rrrr+rArrBrCr'r'r'r(r�s\





N)r3Zpygments.lexerrZpygments.tokenrrrrrrr	r
rZ
pygments.utilr�__all__r
rr'r'r'r(�<module>
s,o