| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/cygwin64/lib/python3.9/site-packages/pygments/lexers/__pycache__/ |
Upload File : |
a
SҼar+ � @ st d dl Z d dlmZmZmZmZmZmZ d dlm Z m
Z
mZmZm
Z
mZmZmZ dgZe �d�ZG dd� de�ZdS )� N)�
RegexLexer�include�bygroups�default�words�combined)�Text�Comment�Operator�Keyword�Name�String�Number�Punctuation�
GDScriptLexerz.*?
c @ s~ e Zd ZdZddgZdgZddgZdd� Zd efd
e ee
je
j�fde ee
je
j�fdefd
e
jfdefdefdefdejfdefed�de ee�dfde ee�dfed�de e
je
j�dfde e
je
j�dfde e
je
j�dfde e
je
j�d fd!e e
je
j�ed"d�fd#e e
je
j�ed"d�fd$e e
je
j�ed"d�fd%e e
je
j�ed"d �fed&�ed'�ged(d)d*�efged+d,d)d-�ejfd.ejjfed/d,d)d-�ejjfgd0ejfd1ejfd2ejfd3ejfgd4efgd4ejd5fe d5�gd4ej!d5fgd6e
j"fgee
j�ee
j�d7e
jd5fd8e
j"fed9�gd:e
jd5fd;e
j"fed<�gd=e
jd5fed9�d e
jfgd>e
jd5fed<�d e
jfgd?�Z#d@dA� Z$dBS )Cr ZGDScriptZgdscript�gdz*.gdztext/x-gdscriptzapplication/x-gdscriptc C s dt jfd| fd| fd| fgS )NzG%(\(\w+\))?[-#0 +]*([0-9]+|[*])?(\.([0-9]+|[*]))?[hlL]?[E-GXc-giorsux%]z[^\\\'"%\n]+z[\'"\\]�%)r
ZInterpol)Zttype� r �</usr/lib/python3.9/site-packages/pygments/lexers/gdscript.py�innerstring_rules$ s ��zGDScriptLexer.innerstring_rulesz\nz&^(\s*)([rRuUbB]{,2})("""(?:.|\n)*?""")z&^(\s*)([rRuUbB]{,2})('''(?:.|\n)*?''')z[^\S\n]+z#.*$z[]{}:(),;[]z\\\nz\\z(in|and|or|not)\bz=!=|==|<<|>>|&&|\+=|-=|\*=|/=|%=|&=|\|=|\|\||[-~+/*%=<>&^.!|$]�keywordsz(func)((?:\s|\\\s)+)�funcnamez(class)((?:\s|\\\s)+)� classname�builtinsz!([rR]|[uUbB][rR]|[rR][uUbB])(""")�tdqsz!([rR]|[uUbB][rR]|[rR][uUbB])(''')�tsqsz([rR]|[uUbB][rR]|[rR][uUbB])(")�dqsz([rR]|[uUbB][rR]|[rR][uUbB])(')�sqsz([uUbB]?)(""")�stringescapez([uUbB]?)(''')z([uUbB]?)(")z([uUbB]?)(')�name�numbers)$�and�in�not�or�as�
breakpoint�class�
class_nameZextends�is�funcZsetget�signalZtool�const�enumZexportZonreadyZstatic�var�break�continue�if�elif�else�for�pass�return�match�whileZremoteZmasterZpuppetZ
remotesyncZ
mastersyncZ
puppetsyncz\b)�suffix)GZColor8ZColorN�absZacosZasin�assertZatanZatan2Z bytes2varZceil�charZclampZconvertZcosZcoshZ db2linearZdecimalsZdectimeZdeg2radZ dict2instZeaseZexpZfloorZfmodZfposmodZfuncref�hashZ inst2dictZinstance_from_idZis_infZis_nanZlerpZ linear2db�load�log�max�minZnearest_po2�powZpreload�print�print_stackZprinterrZprintrawZprintsZprinttZrad2degZ
rand_rangeZ rand_seedZrandfZrandiZ randomize�range�roundZseed�signZsinZsinhZsqrtZstepify�strZstr2var�tanrI ZtanhZ
type_existZtypeofZ var2bytesZvar2str�weakref�yieldz(?<!\.))�prefixr9 z-((?<!\.)(self|false|true)|(PI|TAU|NAN|INF))\b)�bool�int�floatr
�NodePathZVector2ZRect2ZTransform2DZVector3ZRect3ZPlaneZQuatZBasisZ TransformZColorZRIDZObjectrP Z
DictionaryZArrayZPackedByteArrayZPackedInt32ArrayZPackedInt64ArrayZPackedFloat32ArrayZPackedFloat64ArrayZPackedStringArrayZPackedVector2ArrayZPackedVector3ArrayZPackedColorArrayZnullz'(\d+\.\d*|\d*\.\d+)([eE][+-]?[0-9]+)?j?z\d+[eE][+-]?[0-9]+j?z0[xX][a-fA-F0-9]+z\d+j?z[a-zA-Z_]\w*z#popzY\\([\\abfnrtv"\']|\n|N\{.*?\}|u[a-fA-F0-9]{4}|U[a-fA-F0-9]{8}|x[a-fA-F0-9]{2}|[0-7]{1,3})�"z
\\\\|\\"|\\\n�strings-double�'z
\\\\|\\'|\\\n�strings-singlez"""z''')�rootr r r r r r r rT rR r r r r c C sJ d}t �d| �r|d7 }t �d| �r,|d7 }t �d| �r@|d7 }t|d�S ) Ng z4func (_ready|_init|_input|_process|_unhandled_input)g�������?z=(extends |class_name |onready |preload|load|setget|func [^_])g�������?z#(var|const|enum|export|signal|tool)g�������?g �?)�re�searchrA )�textZscorer r r �analyse_textH s ��zGDScriptLexer.analyse_textN)%�__name__�
__module__�__qualname__r �aliases� filenamesZ mimetypesr r r r
ZAffixZDocr �Singler r
ZWordr r �Doubler r r ZBuiltinZPseudo�Typer ZFloatZHexZIntegerZFunctionr ZClassZEscape�tokensrY r r r r r s� ������������E&�)��0I�M�P
�$��{���
�
�
�
�� � � )rV Zpygments.lexerr r r r r r Zpygments.tokenr r r
r r r
r r �__all__�compileZline_rer r r r r �<module> s
(