File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/pygments/lexers/__pycache__/actionscript.cpython-310.pyc
Back
o ;j�- � @ s� d Z ddlZddlmZmZmZmZmZmZ ddl m Z mZmZm Z mZmZmZmZmZ g d�ZG dd� de�ZG dd � d e�ZG d d� de�ZdS )z� pygments.lexers.actionscript ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Lexers for ActionScript and MXML. :copyright: Copyright 2006-present by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. � N)� RegexLexer�bygroups�using�this�words�default) �Text�Comment�Operator�Keyword�Name�String�Number�Punctuation� Whitespace)�ActionScriptLexer�ActionScript3Lexer� MxmlLexerc @ s� e Zd ZdZdZddgZdgZg d�ZdZdZ e jZd d e fdejfdejfd ejfdefdefeddd�efeddd�ejfdejfeddd�ejfeddd�ejfdejfdejfdejfdej fdej!fdejfgiZ"dd� Z#dS ) r z' For ActionScript source code. ZActionScriptZactionscript�as�*.as)zapplication/x-actionscriptztext/x-actionscriptztext/actionscriptz*https://en.wikipedia.org/wiki/ActionScriptz0.9�root�\s+�//.*?\n� /\*.*?\*/z /(\\\\|\\[^\\]|[^/\\\n])*/[gim]*z[~^*!%&<>|+=:;,/?\\-]+z [{}\[\]();.]+)�caser �forZeach�in�whileZdo�break�return�continue�if�else�throw�tryZcatch�var�with�newZtypeofZ argumentsZ instanceofr Zswitchz\b)�suffix)�classZpublic�finalZinternalZnative�overrideZprivateZ protectedZstatic�importZextendsZ implementsZ interfaceZ intrinsicr �superZdynamic�function�const�get� namespace�package�setz9(true|false|null|NaN|Infinity|-Infinity|undefined|Void)\b)�Z AccessibilityZAccessibilityPropertiesZActionScriptVersionZ ActivityEventZ AntiAliasTypeZApplicationDomainZ AsBroadcaster�ArrayZAsyncErrorEventZ AVM1MovieZBevelFilterZBitmapZ BitmapDataZBitmapDataChannelZBitmapFilterZBitmapFilterQualityZBitmapFilterTypeZ BlendModeZ BlurFilterZBooleanZ ByteArrayZCameraZCapabilitiesZ CapsStyleZClassZColorZColorMatrixFilterZColorTransformZContextMenuZContextMenuBuiltInItemsZContextMenuEventZContextMenuItemZConvultionFilterZCSMSettingsZ DataEventZDateZDefinitionErrorZDeleteObjectSampleZ DictionaryZDisplacmentMapFilterZ DisplayObjectZDisplacmentMapFilterModeZDisplayObjectContainerZDropShadowFilterZEndian�EOFError�ErrorZ ErrorEventZ EvalError�EventZEventDispatcherZ EventPhaseZExternalInterfaceZ FileFilterZ FileReferenceZFileReferenceListZFocusDirectionZ FocusEventZFontZ FontStyleZFontTypeZ FrameLabelZFullScreenEvent�FunctionZ GlowFilterZGradientBevelFilterZGradientGlowFilterZGradientTypeZGraphicsZGridFitTypeZHTTPStatusEventZIBitmapDrawableZID3InfoZ IDataInputZIDataOutputZ,IDynamicPropertyOutputIDynamicPropertyWriterZIEventDispatcherZIExternalizableZIllegalOperationErrorZIMEZIMEConversionModeZIMEEvent�intZInteractiveObjectZInterpolationMethodZInvalidSWFErrorZInvokeEvent�IOErrorZIOErrorEventZ JointStyleZKeyZKeyboardZ KeyboardEventZKeyLocationZ LineScaleMode�LoaderZ LoaderContextZ LoaderInfoZLoadVarsZLocalConnectionZLocaleZMathZMatrix�MemoryErrorZ MicrophoneZ MorphShapeZMouseZ MouseEventZ MovieClipZMovieClipLoader� NamespaceZ NetConnectionZNetStatusEventZ NetStreamZNewObjectSampler ZObjectZObjectEncodingZ PixelSnappingZPointZPrintJobZPrintJobOptionsZPrintJobOrientationZ ProgressEventZProxyZQNameZ RangeErrorZ Rectangle�ReferenceErrorZRegExpZ ResponderZSampleZSceneZScriptTimeoutErrorZSecurityZSecurityDomainZ SecurityErrorZSecurityErrorEventZ SecurityPanelZ SelectionZShapeZSharedObjectZSharedObjectFlushStatusZSimpleButtonZSocketZSoundZSoundChannelZSoundLoaderContextZ SoundMixerZSoundTransformZSpreadMethodZSpriteZ StackFrameZStackOverflowErrorZStageZ StageAlignZStageDisplayStateZStageQualityZStageScaleModeZ StaticTextZStatusEventr Z StyleSheetZ SWFVersionZ SyncEvent�SyntaxError�SystemZ TextColorTypeZ TextFieldZTextFieldAutoSizeZ TextFieldTypeZ TextFormatZTextFormatAlignZTextLineMetricsZTextRendererZTextSnapshot�TimerZ TimerEventZ Transform� TypeErrorZuintZURIErrorZ URLLoaderZURLLoaderDataFormatZ URLRequestZURLRequestHeaderZURLRequestMethodZ URLStreamZ URLVariabelesZVerifyErrorZVideoZXMLZXMLDocumentZXMLListZXMLNodeZXMLNodeTypeZ XMLSocketZXMLUI)Z decodeURIZdecodeURIComponentZ encodeURI�escape�evalZisFiniteZisNaNZ isXMLNameZ clearIntervalZ fscommandZgetTimerZgetURLZ getVersionZ parseFloatZparseIntZsetIntervalZtraceZupdateAfterEventZunescape� [$a-zA-Z_]\w*�%[0-9][0-9]*\.[0-9]+([eE][0-9]+)?[fd]?�0x[0-9a-f]+�[0-9]+�"(\\\\|\\[^\\]|[^"\\])*"�'(\\\\|\\[^\\]|[^'\\])*'c C s dS )z�This 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.r � ��textrK rK �P/opt/saltstack/salt/lib/python3.10/site-packages/pygments/lexers/actionscript.py�analyse_textp s zActionScriptLexer.analyse_textN)$�__name__� __module__�__qualname__�__doc__�name�aliases� filenames� mimetypes�url� version_added�re�DOTALL�flagsr r �Single� Multiliner �Regexr r r r �Declaration�Constantr ZBuiltinr8 ZOtherr �Float�Hex�Integer�Double�tokensrO rK rK rK rN r s` �����'�(�)����Nr c @ s� e Zd ZdZdZdZddgZdgZg d�ZdZ d Z e d Zej ejB Zdefde d eejejee�dfde d e d eejeeeeeej�fde d eeeeje�fde d eeeejee�fdejfdejfdejfde d eeej �fdefdejfdej!fdejfe efde"j#fde"j$fde"j%fd ej&fd!ejfd"efgdefd#e d e d$ eeeeeeeeje�d%fd&ed'fgd(e d) eeeeej�d*fded*fe'd*�gd+eeee(e)�ee�d,fd-ed,fe'd,�gd.�Z*d/d0� Z+d1S )2r z) For ActionScript 3 source code. zActionScript 3zNhttps://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/index.htmlZ actionscript3Zas3r )zapplication/x-actionscript3ztext/x-actionscript3ztext/actionscript3z0.11rE z(?:\.<\w+>)?r z(function\s+)(z )(\s*)(\()� funcparamsz(var|const)(\s+)(z)(\s*)(:)(\s*)(�)z(import|package)(\s+)((?:z|\.)+)(\s*)z(new)(\s+)(r r z /(\\\\|\\[^\\]|[^\\\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)\brF rG rH rI rJ z[~^*!%&<>|+=:;,/?\\{}\[\]().-]+z(\s*)(\.\.\.)?(z |\*)(\s*)�defvalz\)�typez(\s*)(:)(\s*)(z|\*)z#pop:2z(=)(\s*)([^(),]+)(\s*)(,?)�#pop�,)r rg rj ri c C s t �d| �rdS dS )Nz\bimport\s+flash\.g�������?r )rZ �searchrL rK rK rN rO � s zActionScript3Lexer.analyse_textN),rP rQ rR rS rT rX rU rV rW rY Z identifierZtypeidentifierrZ r[ � MULTILINEr\ r r r r` r r8 r r r �Typer= r r] r^ r r_ � Attributera r rb rc rd re r r r rf rO rK rK rK rN r v s� � ���� � ������( ����� �����>r c @ s� e Zd ZdZejejB ZdZdgZ dgZ dZdZde fdejfd eeee�e�fd edfdejfd ejfdejdfdejfgdefdedfdefgdefdejdfdejdfgdefdedfdedfdedfgd�ZdS )r zc For MXML markup. Nested AS3 in <script> tags is highlighted by the appropriate lexer. ZMXMLZmxmlz*.mxmlz"https://en.wikipedia.org/wiki/MXMLz1.1z[^<&]+z&\S*?;z(\<\!\[CDATA\[)(.*?)(\]\]\>)z<!--�commentz <\?.*?\?>z<![^>]*>z<\s*[\w:.-]+�tagz<\s*/\s*[\w:.-]+\s*>z[^-]+z-->rk �-r z[\w.:-]+\s*=�attrz/?\s*>z".*?"z'.*?'z[^\s>]+)r rq rr rt N)rP rQ rR rS rZ rn r[ r\ rT rU rV rX rY r r ZEntityr r r r r ZPreprocZTagr rp rf rK rK rK rN r � sB � �� �� �r )rS rZ Zpygments.lexerr r r r r r Zpygments.tokenr r r r r r r r r �__all__r r r rK rK rK rN �<module> s ,bU
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings