| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/cygwin64/lib/python3.9/site-packages/pygments/lexers/__pycache__/ |
Upload File : |
a
SҼa�, � @ s� d Z ddlZddlmZmZmZmZmZmZ ddl m
Z
mZmZm
Z
mZmZmZmZ 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-2021 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)�ActionScriptLexer�ActionScript3Lexer� MxmlLexerc @ s� e Zd ZdZdZddgZdgZg d�Zej Z
ddefd ej
fd
ejfdejfdefd
efeddd�efeddd�ejfdejfeddd�ejfeddd�ejfdejfdejfdejfdejfdejfdej
fgiZ dd� Z!dS )r zB
For ActionScript source code.
.. versionadded:: 0.9
ZActionScriptZactionscript�as�*.as)zapplication/x-actionscriptztext/x-actionscriptztext/actionscript�root�\s+�//.*?\n� /\*.*?\*/z /(\\\\|\\[^\\]|[^/\\\n])*/[gim]*z[~^*!%&<>|+=:;,/?\\-]+z
[{}\[\]();.]+)Zcaser �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
AsBroadcasterZArrayZAsyncErrorEventZ 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�SyntaxErrorZSystemZ
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 � ��textrG rG �@/usr/lib/python3.9/site-packages/pygments/lexers/actionscript.py�analyse_textp s zActionScriptLexer.analyse_textN)"�__name__�
__module__�__qualname__�__doc__�name�aliases� filenames� mimetypes�re�DOTALL�flagsr r �Single� Multiliner
�Regexr
r r r �Declaration�Constantr ZBuiltinr5 ZOtherr �Float�Hex�Integer�Double�tokensrK rG rG rG rJ r sZ �����'�(�)����Nr c @ s� e Zd ZdZdZddgZdgZg d�ZdZed Z e
je
jB Z
d efd
e d eejejee�dfd
e d e d eejeeeeeej�fde d eeeeje�fde d eeeejee�fdejfdejfdejfde d eeej�fdefdejfdejfdejfeefdej fdej!fdej"fdej#fdejfd efgd efd!e d e d" eeeeeeeeje�d#fd$ed%fgd&e d' eeeeej�d(fd ed(fe$d(�gd)eeee%e&�ee�d*fd+ed*fe$d*�gd,�Z'd-d.� Z(d/S )0r zE
For ActionScript 3 source code.
.. versionadded:: 0.11
zActionScript 3Z
actionscript3Zas3r )zapplication/x-actionscript3ztext/x-actionscript3ztext/actionscript3rA 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)\brB rC rD rE rF z[~^*!%&<>|+=:;,/?\\{}\[\]().-]+z(\s*)(\.\.\.)?(z |\*)(\s*)�defvalz\)�typez(\s*)(:)(\s*)(z|\*)z#pop:2z(=)(\s*)([^(),]+)(\s*)(,?)�#pop�,)r ra rd rc c C s t �d| �rdS dS )Nz\w+\s*:\s*\wg333333�?r )rT �matchrH rG rG rJ rK � s zActionScript3Lexer.analyse_textN))rL rM rN rO rP rQ rR rS Z
identifierZtypeidentifierrT rU � MULTILINErV r r r rZ r r5 r
r �Typer: r rW rX r
rY � Attributer[ r r\ r] r^ r_ r r r r` rK rG rG rG rJ r v s�
�
����
�
������(
�����
�����>r c @ s� e Zd ZdZejejB ZdZdgZ dgZ
ddgZdefde
jfd eeee�e�fd
edfdejfd
ejfde
jdfde
jfgdefdedfdefgdefde
jdfde
jdfgdefdedfdedfdedfgd�ZdS )r z~
For MXML markup.
Nested AS3 in <script> tags is highlighted by the appropriate lexer.
.. versionadded:: 1.1
ZMXMLZmxmlz*.mxmlztext/xmlzapplication/xmlz[^<&]+z&\S*?;z(\<\!\[CDATA\[)(.*?)(\]\]\>)z<!--�commentz <\?.*?\?>z<![^>]*>z<\s*[\w:.-]+�tagz<\s*/\s*[\w:.-]+\s*>z[^-]+z-->re �-r z[\w.:-]+\s*=�attrz/?\s*>z".*?"z'.*?'z[^\s>]+)r rk rl rn N)rL rM rN rO rT rh rU rV rP rQ rR Z mimetimesr r ZEntityr r
r r r ZPreprocZTagrj r` rG rG rG rJ r � s>