3

V'ícwã@srdZddlZddlmZmZmZmZmZmZddl	m
Z
mZmZm
Z
mZmZmZmZmZdgZGdd„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-2022 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Ú
GDScriptLexercJ@sˆeZdZdZdZdZddgZdgZddgZd	d
„Z	de
fdee
ej
ejƒfd
ee
ej
ejƒfde
fdejfdefdeee
ƒfdefdejfdefedƒdeee
ƒdfdeee
ƒdfedƒdeej
ejƒdfdeej
ejƒdfdeej
ejƒd fd!eej
ejƒd"fd#eej
ejƒed$dƒfd%eej
ejƒed$dƒfd&eej
ejƒed$d ƒfd'eej
ejƒed$d"ƒfed(ƒed)ƒgedÊdNdOefgedËd–dNd—ejfd˜ejjfedÌd–dNd—ejjfgd·ejfd¸ejfd¹ej fdºej!fgd»efgd»ej"d¼fe#d¼ƒgd»ej$d¼fgd½ej%fge	ejƒe	ejƒd¾ejd¼fd¿ej%fedÀƒgdÁejd¼fdÂej%fedÃgdÄejd¼fedÀƒde
fgdÅejd¼fedÃde
fgdƜZ&dÇdȄZ'dÉS)Írz#
    For GDScript source code.
    ZGDScriptzhttps://www.godotengine.orgZgdscriptÚgdz*.gdztext/x-gdscriptzapplication/x-gdscriptcCsdtjfd|fd|fd|fgS)NzG%(\(\w+\))?[-#0 +]*([0-9]+|[*])?(\.([0-9]+|[*]))?[hlL]?[E-GXc-giorsux%]z[^\\\'"%\n]+z[\'"\\]ú%)r
ZInterpol)Zttype©rú</tmp/pip-build-gk9425m9/Pygments/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_nameÚextendsÚisÚfuncÚsetgetÚsignalÚtoolÚconstÚenumÚexportÚonreadyÚstaticÚvarÚbreakÚcontinueÚifÚelifÚelseÚforÚpassÚreturnÚmatchÚwhileÚremoteÚmasterÚpuppetÚ
remotesyncÚ
mastersyncÚ
puppetsyncz\b)ÚsuffixÚColor8ÚColorNÚabsÚacosÚasinÚassertÚatanÚatan2Ú	bytes2varÚceilÚcharÚclampÚconvertÚcosÚcoshÚ	db2linearÚdecimalsÚdectimeÚdeg2radÚ	dict2instÚeaseÚexpÚfloorÚfmodÚfposmodÚfuncrefÚhashÚ	inst2dictÚinstance_from_idÚis_infÚis_nanÚlerpÚ	linear2dbÚloadÚlogÚmaxÚminÚnearest_po2ÚpowÚpreloadÚprintÚprint_stackÚprinterrÚprintrawÚprintsÚprinttÚrad2degÚ
rand_rangeÚ	rand_seedÚrandfÚrandiÚ	randomizeÚrangeÚroundÚseedÚsignÚsinÚsinhÚsqrtÚstepifyÚstrÚstr2varÚtanÚtanhÚ
type_existÚtypeofÚ	var2bytesÚvar2strÚweakrefÚyieldz(?<!\.))ÚprefixrFz-((?<!\.)(self|false|true)|(PI|TAU|NAN|INF))\bÚboolÚintÚfloatr
ÚNodePathÚVector2ÚRect2ÚTransform2DÚVector3ÚRect3ÚPlaneÚQuatÚBasisÚ	TransformÚColorÚRIDÚObjectÚ
DictionaryÚArrayÚPackedByteArrayÚPackedInt32ArrayÚPackedInt64ArrayÚPackedFloat32ArrayÚPackedFloat64ArrayÚPackedStringArrayÚPackedVector2ArrayÚPackedVector3ArrayÚPackedColorArrayÚ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
\\\\|\\"|\\\nzstrings-doubleú'z
\\\\|\\'|\\\nzstrings-singlez"""z''')Úrootrrr!r rrrzstrings-singlezstrings-doublerrrrcCsJd}tjd|ƒr|d7}tjd|ƒr,|d7}tjd|ƒr@|d7}t|dƒS)	Ngz4func (_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Úsearchrk)ÚtextZscorerrrÚanalyse_text«szGDScriptLexer.analyse_textN)$r"r#r$r%r&r'r(r)r*r+r,r-r.r/r0r1r2r3r4r5r6r7r8r9r:r;r<r=r>r?r@rArBrCrDrE)GrGrHrIrJrKrLrMrNrOrPrQrRrSrTrUrVrWrXrYrZr[r\r]r^r_r`rarbrcrdrerfrgrhrirjrkrlrmrnrorprqrrrsrtrurvrwrxryrzr{r|r}r~rr€rr‚rƒr„r…r…r†r‡rˆr‰rŠr‹rŒ)rŽrrr
r‘r’r“r”r•r–r—r˜r™ršr›rœrr‘ržrŸr r¡r¢r£r¤r¥r¦r§r¨r©rª)(Ú__name__Ú
__module__Ú__qualname__Ú__doc__r ÚurlÚaliasesÚ	filenamesÚ	mimetypesrrrr
ZAffixZDocr	ÚSinglerrr
ÚWordrrÚDoublerrrZBuiltinZPseudoÚTyperZFloatZHexZIntegerZFunctionrZClassZEscapeÚtokensr±rrrrrsÔ










)rµr®Zpygments.lexerrrrrrrZpygments.tokenrr	r
rrr
rrrÚ__all__rrrrrÚ<module>s
 ,