Your IP : 216.73.216.213
B
̽�\� � @ st d Z ddlmZ ddlmZmZmZmZmZm Z m
Z
mZmZ ddl
mZ ddgZG dd� de�ZG dd� 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� e Zd ZdZdZdgZdgZdgZdZdZ de
jd fd
e
jdfde d
e
jd fde d e
jdfdefdefdefde
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)�rootr r r )N�Action�bool�FloatZPluginr �anyZ AdminFlagZOverrideTypeZOverrideRuleZImmunityTypeZGroupIdZAdminIdZ
AdmAccessModeZAdminCachePartZCookieAccessZ
CookieMenuZCookieMenuActionZNetFlowZConVarBoundsZQueryCookieZReplySourceZConVarQueryResultZConVarQueryFinishedZFunctionr ZIdentityZPluginStatusZ
PluginInfoZDBResultZ
DBBindTypeZ
DBPriorityZPropTypeZ
PropFieldTypeZMoveTypeZ
RenderModeZRenderFxZ
EventHookModeZ EventHook�FileTypeZFileTimeModeZPathTypeZ ParamTypeZExecTypeZ
DialogType�HandleZKvDataTypesZNominateResultZ MapChangeZ MenuStyleZ
MenuActionZ
MenuSourceZ
RegexErrorZSDKCallTypeZ
SDKLibraryZSDKFuncConfSourceZSDKTypeZ
SDKPassMethodZRayTypeZTraceEntityFilterZListenOverrideZ SortOrderZSortTypeZ
SortFunc2DZAPLResZFeatureTypeZ
FeatureStatusZ SMCResultZSMCErrorZTFClassTypeZTFTeamZTFCondZTFResourceType�TimerZ
TopMenuActionZTopMenuObjectTypeZTopMenuPositionZ
TopMenuObjectZUserMsgc K sF t |dd�| _t� | _| jr4ddlm} | j�|� tj| f|� d S )NZ sourcemodTr )� FUNCTIONS) r �smhighlighting�set�
_functionsZ#pygments.lexers._sourcemod_builtinsr �updater �__init__)�self�optionsr � r'