|e-dZddlZddlmZmZmZmZmZmZddl m Z m Z m Z m Z mZmZmZmZmZgdZGddeZGdd eZGd d eZy) z pygments.lexers.actionscript ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Lexers for ActionScript and MXML. :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. N) RegexLexerbygroupsusingthiswordsdefault) TextCommentOperatorKeywordNameStringNumber Punctuation Whitespace)ActionScriptLexerActionScript3Lexer MxmlLexerceZdZdZdZddgZdgZgdZejZ dde fd e jfd e jfd ej fd efd efeddefeddej*fdej,feddej0feddej2fdej4fdej8fdej:fdej<fdej>fdejfgiZ dZ!y)rzB For ActionScript source code. .. versionadded:: 0.9 ActionScript actionscriptas*.as)zapplication/x-actionscriptztext/x-actionscriptztext/actionscriptroot\s+//.*?\n /\*.*?\*/z /(\\\\|\\[^\\]|[^/\\\n])*/[gim]*z[~^*!%&<>|+=:;,/?\\-]+z [{}\[\]();.]+)caserforeachinwhiledobreakreturncontinueifelsethrowtrycatchvarwithnewtypeof arguments instanceofrswitchz\b)suffix)classpublicfinalinternalnativeoverrideprivate protectedstaticimportextends implements interface intrinsicr%superdynamicfunctionconstget namespacepackagesetz9(true|false|null|NaN|Infinity|-Infinity|undefined|Void)\b) AccessibilityAccessibilityPropertiesActionScriptVersion ActivityEvent AntiAliasTypeApplicationDomain AsBroadcasterArrayAsyncErrorEvent AVM1Movie BevelFilterBitmap BitmapDataBitmapDataChannel BitmapFilterBitmapFilterQualityBitmapFilterType BlendMode BlurFilterBoolean ByteArrayCamera Capabilities CapsStyleClassColorColorMatrixFilterColorTransform ContextMenuContextMenuBuiltInItemsContextMenuEventContextMenuItemConvultionFilter CSMSettings DataEventDateDefinitionErrorDeleteObjectSample DictionaryDisplacmentMapFilter DisplayObjectDisplacmentMapFilterModeDisplayObjectContainerDropShadowFilterEndianEOFErrorError ErrorEvent EvalErrorEventEventDispatcher EventPhaseExternalInterface FileFilter FileReferenceFileReferenceListFocusDirection FocusEventFont FontStyleFontType FrameLabelFullScreenEventFunction GlowFilterGradientBevelFilterGradientGlowFilter GradientTypeGraphics GridFitTypeHTTPStatusEventIBitmapDrawableID3Info IDataInput IDataOutput,IDynamicPropertyOutputIDynamicPropertyWriterIEventDispatcherIExternalizableIllegalOperationErrorIMEIMEConversionModeIMEEventintInteractiveObjectInterpolationMethodInvalidSWFError InvokeEventIOError IOErrorEvent JointStyleKeyKeyboard KeyboardEvent KeyLocation LineScaleModeLoader LoaderContext LoaderInfoLoadVarsLocalConnectionLocaleMathMatrix MemoryError Microphone MorphShapeMouse MouseEvent MovieClipMovieClipLoader Namespace NetConnectionNetStatusEvent NetStreamNewObjectSamplerObjectObjectEncoding PixelSnappingPointPrintJobPrintJobOptionsPrintJobOrientation ProgressEventProxyQName RangeError RectangleReferenceErrorRegExp ResponderSampleSceneScriptTimeoutErrorSecuritySecurityDomain SecurityErrorSecurityErrorEvent SecurityPanel SelectionShape SharedObjectSharedObjectFlushStatus SimpleButtonSocketSound SoundChannelSoundLoaderContext SoundMixerSoundTransform SpreadMethodSprite StackFrameStackOverflowErrorStage StageAlignStageDisplayState StageQualityStageScaleMode StaticText StatusEventr StyleSheet SWFVersion SyncEvent SyntaxErrorSystem TextColorType TextFieldTextFieldAutoSize TextFieldType TextFormatTextFormatAlignTextLineMetrics TextRenderer TextSnapshotTimer TimerEvent Transform TypeErroruintURIError URLLoaderURLLoaderDataFormat URLRequestURLRequestHeaderURLRequestMethod URLStream URLVariabeles VerifyErrorVideoXML XMLDocumentXMLListXMLNode XMLNodeType XMLSocketXMLUI) decodeURIdecodeURIComponent encodeURIescapeevalisFiniteisNaN isXMLName clearInterval fscommandgetTimergetURL getVersion parseFloatparseInt setIntervaltraceupdateAfterEventunescape [$a-zA-Z_]\w*%[0-9][0-9]*\.[0-9]+([eE][0-9]+)?[fd]? 0x[0-9a-f]+[0-9]+"(\\\\|\\[^\\]|[^"\\])*"'(\\\\|\\[^\\]|[^'\\])*'cy)zThis is only used to disambiguate between ActionScript and ActionScript3. We return 0 here; the ActionScript3 lexer will match AS3 variable definitions and that will hopefully suffice.rtexts >/usr/lib/python3/dist-packages/pygments/lexers/actionscript.py analyse_textzActionScriptLexer.analyse_textpsN)"__name__ __module__ __qualname____doc__namealiases filenames mimetypesreDOTALLflagsrr Single MultilinerRegexr rrr DeclarationConstantr BuiltinrOtherrFloatHexIntegerDoubletokensr,r(r-r+rrsl Dt$GI&I IIE Z  ( 7,, - 0&,, ? & 1 { + #( )    /8= >   " J     'N"'O'(P\\Q( R%* + ]]   tzz * 5v|| D VZZ (  ' (&-- 8 (&-- 8SJ LF\r-rceZdZdZdZdZddgZdgZgdZdZ e d zZ e je jzZd efd e zd zeej$ej(eed fde zdze zdzeej$eeeeeej0fde zdzeeeej2efde zd zeeeej0eefdej6fdej8fdej<fde zdzeeej>fdefdej$fdej@fdej(fe efde!jDfde!jFfde!jHfdejJfd ej6fd!efgd efd"e zdze zd#zeeeeeeeej0ed$fd%ed&fgd'e zd(zeeeeej0d)fd ed)fe&d)gd*eeee'e(eed+fd,ed+fe&d+gd-Z)d.Z*y/)0rzE For ActionScript 3 source code. .. versionadded:: 0.11 zActionScript 3zNhttps://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/index.html actionscript3as3r)zapplication/x-actionscript3ztext/x-actionscript3ztext/actionscript3r!z (?:\.<\w+>)?rz(function\s+)(z )(\s*)(\() funcparamsz(var|const)(\s+)(z)(\s*)(:)(\s*)()z(import|package)(\s+)((?:z |\.)+)(\s*)z (new)(\s+)(rrz /(\\\\|\\[^\\]|[^\\\n])*/[gisx]*z(\.)(z(case|default|for|each|in|while|do|break|return|continue|if|else|throw|try|catch|with|new|typeof|arguments|instanceof|this|switch|import|include|as|is)\bz(class|public|final|internal|native|override|private|protected|static|import|extends|implements|interface|intrinsic|return|super|dynamic|function|const|get|namespace|package|set)\bz9(true|false|null|NaN|Infinity|-Infinity|undefined|void)\bz(decodeURI|decodeURIComponent|encodeURI|escape|eval|isFinite|isNaN|isXMLName|clearInterval|fscommand|getTimer|getURL|getVersion|isFinite|parseFloat|parseInt|setInterval|trace|updateAfterEvent|unescape)\br"r#r$r%r&z[~^*!%&<>|+=:;,/?\\{}\[\]().-]+z(\s*)(\.\.\.)?(z |\*)(\s*)defvalz\)typez(\s*)(:)(\s*)(z|\*)z#pop:2z(=)(\s*)([^(),]+)(\s*)(,?)#pop,)rrHrKrJc2tjd|ryy)Nz \w+\s*:\s*\wg333333?r)r6matchr)s r+r,zActionScript3Lexer.analyse_texts 88OT *r-N)+r.r/r0r1r2urlr3r4r5 identifiertypeidentifierr6r7 MULTILINEr8rrr r<r rr r rTyperr r9r:rr; Attributer=rr@rArBrCrrrrDr,r(r-r+rrvs D ZC&GI'I"J/1N II $EZ  +m ; g))4==$ I  "J .1C C "# g)):tZV`ll$ %*J 6 G gz4>>: F H n ,} < gz7<<X N P  ( 7,, - 0&,, ?  "T )8Hdnn+M N/ D  "J    "]] ,  5v|| D VZZ (  ' (&-- 8 (&-- 8 / :K& PZ * ,/A A *+ j+tZ:llJ019 ;Hf %   /' 9 j(J Ex Q T8 $ H   + h E$KX NPV X 8V $ FO  m<F|r-rc eZdZdZej ej zZdZdgZ dgZ ddgZ de fde jfd eeeeefd ed fd ej(fd ej(fde j*dfde j*fgdefdedfdefgdefde j.dfde j*dfgdefdedfdedfdedfgdZy)rz~ For MXML markup. Nested AS3 in