HEX
Server: LiteSpeed
System: Linux s1049.use1.mysecurecloudhost.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: xedaptot (3356)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/pygments/lexers/__pycache__/pawn.cpython-310.pyc
o

;j@ �@spdZddlmZddlmZmZmZmZmZm	Z	m
Z
mZddlm
Z
ddgZGdd�de�ZGdd�de�Zd	S)
z�
    pygments.lexers.pawn
    ~~~~~~~~~~~~~~~~~~~~

    Lexers for the Pawn languages.

    :copyright: Copyright 2006-present by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�)�
RegexLexer)�Text�Comment�Operator�Keyword�Name�String�Number�Punctuation)�get_bool_opt�SourcePawnLexer�	PawnLexerc@s�eZdZdZdZdgZdgZdgZdZdZ	dZ
d	Zd
ej
dfdej
d
fdedej
dfdedej
d
fdefdefdefdejfdejfdefdedfdejfdejfdejfdejfdejfdejfdefd efd!efd"ejfd#ejfd$efgd%ed&fd'ejfd(efdefd)efgd*ej
fd+ejfd,ejd&fd-ej
fd.ej
fdej
d&fgd/ej
d0fd1ej
d&fd2efgd3�Zhd4�Z d5d6�Z!d7d8�Z"d9S):rzB
    For SourcePawn source code with preprocessor directives.
    Z
SourcePawn�spz*.spztext/x-sourcepawnz+https://github.com/alliedmodders/sourcepawnz1.6z(?:\s|//.*?\n|/\*.*?\*/)+�\s*(?:/[*].*?[*]/\s*)*�^#if\s+0�if0�^#�macro�^�#if\s+0�#�\n�\s+�\\\n�/(\\\n)?/(\n|(.|\n)*?[^\\]\n)z/(\\\n)?\*(.|\n)*?\*(\\\n)?/�[{}]�L?"�string�4L?'(\\.|\\[0-7]{1,3}|\\x[a-fA-F0-9]{1,2}|[^\\\'\n])'�'(\d+\.\d*|\.\d+|\d+)[eE][+-]?\d+[LlUu]*�(\d+\.\d*|\.\d+|\d+[fF])[fF]?�0x[0-9a-fA-F]+[LlUu]*�0[0-7]+[LlUu]*�
\d+[LlUu]*�[~!%^&*+=|?:<>/-]�[()\[\],.;]zs(case|const|continue|native|default|else|enum|for|if|new|operator|public|return|sizeof|static|decl|struct|switch)\b�(bool|Float)\b�(true|false)\b�[a-zA-Z_]\w*�"�#pop�/\\([\\abfnrtv"\']|x[a-fA-F0-9]{2,4}|[0-7]{1,3})�	[^\\"\n]+�\\�[^/\n]+�/\*(.|\n)*?\*/�//.*?\n�/�	(?<=\\)\n�^\s*#if.*?(?<!\\)\n�#push�^\s*#endif.*?(?<!\\)\n�.*?\n��rootrrr>MZTFCondZPluginZ
CookieMenuZ	EventHookZOverrideRuleZ	SMCResultZSDKCallTypeZAdminIdZDBResultZ
EventHookMode�PathTypeZImmunityTypeZ	MenuStyleZMoveTypeZ
MenuActionZExecTypeZKvDataTypes�TimerZTFResourceType�HandleZConVarBoundsZReplySourceZRayTypeZ
FeatureStatusZNominateResultZ
DBBindType�ActionZIdentityZSDKTypeZ
SortFunc2DZ
RegexErrorZTFClassTypeZPropType�FloatZ
DialogTypeZ
AdmAccessMode�boolZFunctionrZ
MenuSourceZTopMenuObjectTypeZTopMenuPositionZNetFlowZCookieMenuAction�anyZFeatureTypeZOverrideTypeZRenderFxZ
SDKPassMethodZ	ParamTypeZAdminCachePartZConVarQueryResultZ
PropFieldTypeZConVarQueryFinishedZSortTypeZ
DBPriorityZ
TopMenuActionZ
PluginInfoZSMCErrorZGroupIdZ
RenderModeZQueryCookieZ	MapChangeZ	AdminFlagZTFTeamZCookieAccessZSDKFuncConfSourceZ
TopMenuObjectZAPLResZ	SortOrderZTraceEntityFilterZFileTimeModeZListenOverrideZPluginStatusZUserMsg�FileTypeZ
SDKLibrarycKsJt|dd�|_t�|_|jrddlm}|j�|�tj|fi|��dS)NZ	sourcemodTr)�	FUNCTIONS)	r�smhighlighting�set�
_functionsZ#pygments.lexers._sourcemod_builtinsrA�updater�__init__)�self�optionsrA�rI�H/opt/saltstack/salt/lib/python3.10/site-packages/pygments/lexers/pawn.pyrFks�zSourcePawnLexer.__init__ccsZ�t�||�D]#\}}}|tur$|jr$||jvrtj}n||jvr$tj}|||fVqdS)N)	r�get_tokens_unprocessedrrB�SM_TYPESr�TyperDZBuiltin)rG�text�index�token�valuerIrIrJrKus�
�

�z&SourcePawnLexer.get_tokens_unprocessedN)#�__name__�
__module__�__qualname__�__doc__�name�aliases�	filenames�	mimetypes�url�
version_added�_ws�_ws1r�Preprocr�Single�	Multiliner
r�Charr	r=�Hex�Oct�IntegerrrrM�Constantr�Escape�tokensrLrFrKrIrIrIrJrsr

���

�
	
��4
c@s~eZdZdZdZdgZgd�ZdgZdZdZ	dZ
d	Zd
ej
dfdej
d
fdedej
dfdedej
d
fdefdefdefdejfdejfdefdedfdejfdejfdejfdejfdejfdejfdefd efd!efd"ejfd#ejfd$efgd%ed&fd'ejfd(efdefd)efgd*ej
fd+ejfd,ejd&fd-ej
fd.ej
fdej
d&fgd/ej
d0fd1ej
d&fd2efgd3�Zd4d5�Z d6S)7r
z
    For Pawn source code.
    ZPawnZpawn)z*.pz*.pwnz*.incztext/x-pawnz(https://www.compuphase.com/pawn/pawn.htmz2.0z (?:\s|//.*?\n|/[*][\w\W]*?[*]/)+rrrrrrrrrrrrz/(\\\n)?\*[\w\W]*?\*(\\\n)?/rrrrrr r!r"r#r$r%z�(switch|case|default|const|new|static|char|continue|break|if|else|for|while|do|operator|enum|public|return|sizeof|tagof|state|goto)\br&r'r(r)r*r+r,r-r.r/r0r1r2r3r4r5r6r7cCsd|vrdSdS)zvThis is basically C. There is a keyword which doesn't exist in C
        though and is nearly unique to this language.Ztagofg{�G�z�?NrI)rNrIrIrJ�analyse_text�s�zPawnLexer.analyse_textN)!rRrSrTrUrVrWrXrYrZr[r\r]rr^rr_r`r
rrar	r=rbrcrdrrrMrerrfrgrhrIrIrIrJr
�sn

���

�
	
��4N)rUZpygments.lexerrZpygments.tokenrrrrrrr	r
Z
pygments.utilr�__all__rr
rIrIrIrJ�<module>s
(n