Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/pygments/lexers/__pycache__/gdscript.cpython-39.pyc
Ðазад
a a�h� � @ sr d Z ddlZddlmZmZmZmZmZmZ ddl m Z mZmZm Z mZmZmZmZmZ dgZG dd� de�ZdS )a# pygments.lexers.gdscript ~~~~~~~~~~~~~~~~~~~~~~~~ Lexer for GDScript. Modified by Daniel J. Ramirez <djrmuv@gmail.com> based on the original python.py. :copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. � N)� RegexLexer�include�bygroups�default�words�combined) �Text�Comment�Operator�Keyword�Name�String�Number�Punctuation� Whitespace� GDScriptLexerc @ s� e Zd ZdZdZdZddgZdgZddgZd Z d d� Z defd eee je j�fdeee je j�fdefdejfdefdeee�fdefdejfdefed�deee�dfdeee�dfed�dee je j�dfdee je j�dfd ee je j�d!fd"ee je j�d#fd$ee je j�ed%d�fd&ee je j�ed%d�fd'ee je j�ed%d!�fd(ee je j�ed%d#�fed)�ed*�ged+d,d-�efged.d/d,d0�ejfd1ejjfed2d/d,d0�ejjfgd3ej fd4ej fd5ej!fd6ej"fgd7efgd7ej#d8fe$d8�gd7ej%d8fgd9e j&fge e j�e e j�d:e jd8fd;e j&fed<�gd=e jd8fd>e j&fed?�gd@e jd8fed<�defgdAe jd8fed?�defgdB�Z'dCdD� Z(dES )Fr z# For GDScript source code. �GDScriptzhttps://www.godotengine.org�gdscript�gdz*.gdztext/x-gdscriptzapplication/x-gdscript� c C s dt jfd| fd| fd| fgS )NzG%(\(\w+\))?[-#0 +]*([0-9]+|[*])?(\.([0-9]+|[*]))?[hlL]?[E-GXc-giorsux%]z[^\\\'"%\n]+z[\'"\\]�%)r �Interpol)�ttype� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/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(\\)(\n)z\\z(in|and|or|not)\bz=!=|==|<<|>>|&&|\+=|-=|\*=|/=|%=|&=|\|=|\|\||[-~+/*%=<>&^.!|$]�keywordsz(func)(\s+)�funcnamez(class)(\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�while�remoteZmaster�puppetZ remotesyncZ mastersyncZ puppetsyncz\b)�suffix)GZColor8ZColorN�abs�acos�asin�assert�atan�atan2Z bytes2var�ceil�char�clamp�convert�cos�coshZ db2linearZdecimalsZdectimeZdeg2radZ dict2instZease�exp�floor�fmodZfposmodZfuncref�hashZ inst2dictZinstance_from_idZis_inf�is_nanZlerpZ linear2db�load�log�max�minZnearest_po2�powZpreload�print�print_stackZprinterrZprintrawZprintsZprinttZrad2degZ rand_rangeZ rand_seedZrandfZrandiZ randomize�range�round�seed�sign�sin�sinh�sqrtZstepify�strZstr2var�tanrb �tanhZ type_existZtypeofZ var2bytesZvar2str�weakref�yieldz(?<!\.))�prefixrA z-((?<!\.)(self|false|true)|(PI|TAU|NAN|INF))\b)�bool�int�floatr �NodePathZVector2ZRect2ZTransform2DZVector3ZRect3ZPlaneZQuatZBasisZ Transform�ColorZRIDZObjectrj Z DictionaryZArrayZPackedByteArrayZPackedInt32ArrayZPackedInt64ArrayZPackedFloat32ArrayZPackedFloat64ArrayZPackedStringArrayZPackedVector2ArrayZPackedVector3ArrayZPackedColorArray�null�voidz'(\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&