U 5_,@sdZddlZddlmZmZmZmZmZmZddl m Z m Z m Z m Z mZmZmZmZdddgZGdddeZGd ddeZGd ddeZdS) z pygments.lexers.actionscript ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Lexers for ActionScript and MXML. :copyright: Copyright 2006-2020 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. N) RegexLexerbygroupsusingthiswordsdefault)TextCommentOperatorKeywordNameStringNumber PunctuationActionScriptLexerActionScript3Lexer MxmlLexerc@seZdZdZdZddgZdgZdddgZej Z d d e fd e j fd e jfd ejfdefdefedddefedddejfdejfedddejfedddejfdejfdejfdejfdejfdejfdej fgiZ ddZ!dS) rzB For ActionScript source code. .. versionadded:: 0.9 Z ActionScriptasZ actionscript*.aszapplication/x-actionscriptztext/x-actionscriptztext/actionscriptroot\s+//.*?\n /\*.*?\*/z/(\\\\|\\/|[^/\n])*/[gim]*z[~^*!%&<>|+=:;,/?\\-]+z [{}\[\]();.]+)ZcaserforZeachinwhileZdobreakreturncontinueifelsethrowtryZcatchvarwithnewZtypeofZ argumentsZ instanceofrZswitchz\b)suffix)classZpublicfinalZinternalZnativeoverrideZprivateZ protectedZstaticimportZextendsZ implementsZ interfaceZ intrinsicrsuperZdynamicfunctionZconstget namespacepackagesetz9(true|false|null|NaN|Infinity|-Infinity|undefined|Void)\b)Z AccessibilityZAccessibilityPropertiesZActionScriptVersionZ ActivityEventZ AntiAliasTypeZApplicationDomainZ AsBroadcasterZArrayZAsyncErrorEventZ AVM1MovieZ BevelFilterZBitmapZ BitmapDataZBitmapDataChannelZ BitmapFilterZBitmapFilterQualityZBitmapFilterTypeZ BlendModeZ BlurFilterZBooleanZ ByteArrayZCameraZ CapabilitiesZ CapsStyleZClassZColorZColorMatrixFilterZColorTransformZ ContextMenuZContextMenuBuiltInItemsZContextMenuEventZContextMenuItemZConvultionFilterZ CSMSettingsZ DataEventZDateZDefinitionErrorZDeleteObjectSampleZ DictionaryZDisplacmentMapFilterZ DisplayObjectZDisplacmentMapFilterModeZDisplayObjectContainerZDropShadowFilterZEndianEOFErrorErrorZ ErrorEventZ EvalErrorEventZEventDispatcherZ EventPhaseZExternalInterfaceZ FileFilterZ FileReferenceZFileReferenceListZFocusDirectionZ FocusEventZFontZ FontStyleZFontTypeZ FrameLabelZFullScreenEventFunctionZ GlowFilterZGradientBevelFilterZGradientGlowFilterZ GradientTypeZGraphicsZ GridFitTypeZHTTPStatusEventZIBitmapDrawableZID3InfoZ IDataInputZ IDataOutputZ,IDynamicPropertyOutputIDynamicPropertyWriterZIEventDispatcherZIExternalizableZIllegalOperationErrorZIMEZIMEConversionModeZIMEEventintZInteractiveObjectZInterpolationMethodZInvalidSWFErrorZ InvokeEventIOErrorZ IOErrorEventZ JointStyleZKeyZKeyboardZ KeyboardEventZ KeyLocationZ LineScaleModeLoaderZ LoaderContextZ LoaderInfoZLoadVarsZLocalConnectionZLocaleZMathZMatrix MemoryErrorZ MicrophoneZ MorphShapeZMouseZ MouseEventZ MovieClipZMovieClipLoader NamespaceZ NetConnectionZNetStatusEventZ NetStreamZNewObjectSamplerZObjectZObjectEncodingZ PixelSnappingZPointZPrintJobZPrintJobOptionsZPrintJobOrientationZ ProgressEventZProxyZQNameZ RangeErrorZ RectangleReferenceErrorZRegExpZ ResponderZSampleZSceneZScriptTimeoutErrorZSecurityZSecurityDomainZ SecurityErrorZSecurityErrorEventZ SecurityPanelZ SelectionZShapeZ SharedObjectZSharedObjectFlushStatusZ SimpleButtonZSocketZSoundZ SoundChannelZSoundLoaderContextZ SoundMixerZSoundTransformZ SpreadMethodZSpriteZ StackFrameZStackOverflowErrorZStageZ StageAlignZStageDisplayStateZ StageQualityZStageScaleModeZ StaticTextZ StatusEventr Z StyleSheetZ SWFVersionZ SyncEvent SyntaxErrorZSystemZ TextColorTypeZ TextFieldZTextFieldAutoSizeZ TextFieldTypeZ TextFormatZTextFormatAlignZTextLineMetricsZ TextRendererZ TextSnapshotTimerZ TimerEventZ Transform TypeErrorZuintZURIErrorZ URLLoaderZURLLoaderDataFormatZ URLRequestZURLRequestHeaderZURLRequestMethodZ URLStreamZ URLVariabelesZ VerifyErrorZVideoZXMLZ XMLDocumentZXMLListZXMLNodeZ XMLNodeTypeZ XMLSocketZXMLUI)Z decodeURIZdecodeURIComponentZ encodeURIescapeevalZisFiniteZisNaNZ isXMLNameZ clearIntervalZ fscommandZgetTimerZgetURLZ getVersionZ parseFloatZparseIntZ setIntervalZtraceZupdateAfterEventZunescape [$a-zA-Z_]\w*%[0-9][0-9]*\.[0-9]+([eE][0-9]+)?[fd]? 0x[0-9a-f]+[0-9]+"(\\\\|\\"|[^"])*"'(\\\\|\\'|[^'])*'cCsdS)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.rtextrFrFF/usr/local/lib/python3.8/site-packages/pygments/lexers/actionscript.py analyse_textqszActionScriptLexer.analyse_textN)"__name__ __module__ __qualname____doc__namealiases filenames mimetypesreDOTALLflagsrr Single Multiliner Regexr rrr DeclarationConstantr ZBuiltinr4ZOtherrFloatHexIntegerDoubletokensrJrFrFrFrIrs^'()Nc@seZdZdZdZddgZdgZdddgZd Zed Z e j e j BZ d efd ed eejejeedfdede deejeeeeeejfdedeeeejefde d eeeejeefdejfdejfdejfdedeeejfdefdejfdejfdejfeefdej fdej!fdej"fd ej#fd!ejfd"efgd efd#ede d$eeeeeeeejed%fd&ed'fgd(e d)eeeeejd*fd ed*fe$d*gd+eeee%e&eed,fd-ed,fe$d,gd.Z'd/d0Z(d1S)2rzE For ActionScript 3 source code. .. versionadded:: 0.11 zActionScript 3Zas3Z actionscript3rzapplication/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)\brArBrCrDrEz[~^*!%&<>|+=:;,/?\\{}\[\]().-]+z(\s*)(\.\.\.)?(z |\*)(\s*)defvalz\)typez(\s*)(:)(\s*)(z|\*)z#pop:2z(=)(\s*)([^(),]+)(\s*)(,?)#pop,)rr`rcrbcCstd|rdSdS)Nz \w+\s*:\s*\wg333333?r)rSmatchrGrFrFrIrJs zActionScript3Lexer.analyse_textN))rKrLrMrNrOrPrQrRZ identifierZtypeidentifierrSrT MULTILINErUrrr rYr r4r rZTyper9r rVrWr rX AttributerZrr[r\r]r^rrrr_rJrFrFrFrIrws     (  >c @seZdZdZejejBZdZdgZ dgZ ddgZ de fde jfd eeeeefd ed fd ejfd ejfde jdfde jfgdefdedfdefgde fde jdfde jdfgde fdedfdedfdedfgdZdS)rz~ For MXML markup. Nested AS3 in