File: //usr/lib/python3/dist-packages/pygments/lexers/__pycache__/actionscript.cpython-310.pyc
o
���aA- � @ 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-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�
Whitespace)�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
�ActionScript�actionscript�as�*.as)zapplication/x-actionscriptztext/x-actionscriptztext/actionscript�root�\s+�//.*?\n� /\*.*?\*/z /(\\\\|\\[^\\]|[^/\\\n])*/[gim]*z[~^*!%&<>|+=:;,/?\\-]+z
[{}\[\]();.]+)�caser �for�each�in�while�do�break�return�continue�if�else�throw�try�catch�var�with�new�typeof� arguments�
instanceofr �switchz\b)�suffix)�class�public�final�internal�native�override�private� protected�static�import�extends�
implements� interface� intrinsicr# �super�dynamic�function�const�get� namespace�package�setz9(true|false|null|NaN|Infinity|-Infinity|undefined|Void)\b)��
Accessibility�AccessibilityProperties�ActionScriptVersion�
ActivityEvent�
AntiAliasType�ApplicationDomain�
AsBroadcaster�Array�AsyncErrorEvent� AVM1Movie�BevelFilter�Bitmap�
BitmapData�BitmapDataChannel�BitmapFilter�BitmapFilterQuality�BitmapFilterType� BlendMode�
BlurFilter�Boolean� ByteArray�Camera�Capabilities� CapsStyle�Class�Color�ColorMatrixFilter�ColorTransform�ContextMenu�ContextMenuBuiltInItems�ContextMenuEvent�ContextMenuItem�ConvultionFilter�CSMSettings� DataEvent�Date�DefinitionError�DeleteObjectSample�
Dictionary�DisplacmentMapFilter�
DisplayObject�DisplacmentMapFilterMode�DisplayObjectContainer�DropShadowFilter�Endian�EOFError�Error�
ErrorEvent� EvalError�Event�EventDispatcher�
EventPhase�ExternalInterface�
FileFilter�
FileReference�FileReferenceList�FocusDirection�
FocusEvent�Font� FontStyle�FontType�
FrameLabel�FullScreenEvent�Function�
GlowFilter�GradientBevelFilter�GradientGlowFilter�GradientType�Graphics�GridFitType�HTTPStatusEvent�IBitmapDrawable�ID3Info�
IDataInput�IDataOutput�,IDynamicPropertyOutputIDynamicPropertyWriter�IEventDispatcher�IExternalizable�IllegalOperationError�IME�IMEConversionMode�IMEEvent�int�InteractiveObject�InterpolationMethod�InvalidSWFError�InvokeEvent�IOError�IOErrorEvent�
JointStyle�Key�Keyboard�
KeyboardEvent�KeyLocation�
LineScaleMode�Loader�
LoaderContext�
LoaderInfo�LoadVars�LocalConnection�Locale�Math�Matrix�MemoryError�
Microphone�
MorphShape�Mouse�
MouseEvent� MovieClip�MovieClipLoader� Namespace�
NetConnection�NetStatusEvent� NetStream�NewObjectSampler �Object�ObjectEncoding�
PixelSnapping�Point�PrintJob�PrintJobOptions�PrintJobOrientation�
ProgressEvent�Proxy�QName�
RangeError� Rectangle�ReferenceError�RegExp� Responder�Sample�Scene�ScriptTimeoutError�Security�SecurityDomain�
SecurityError�SecurityErrorEvent�
SecurityPanel� Selection�Shape�SharedObject�SharedObjectFlushStatus�SimpleButton�Socket�Sound�SoundChannel�SoundLoaderContext�
SoundMixer�SoundTransform�SpreadMethod�Sprite�
StackFrame�StackOverflowError�Stage�
StageAlign�StageDisplayState�StageQuality�StageScaleMode�
StaticText�StatusEventr
�
StyleSheet�
SWFVersion� SyncEvent�SyntaxError�System�
TextColorType� TextField�TextFieldAutoSize�
TextFieldType�
TextFormat�TextFormatAlign�TextLineMetrics�TextRenderer�TextSnapshot�Timer�
TimerEvent� Transform� TypeError�uint�URIError� URLLoader�URLLoaderDataFormat�
URLRequest�URLRequestHeader�URLRequestMethod� URLStream�
URLVariabeles�VerifyError�Video�XML�XMLDocument�XMLList�XMLNode�XMLNodeType� XMLSocket�XMLUI)� decodeURI�decodeURIComponent� encodeURI�escape�eval�isFinite�isNaN� isXMLName�
clearInterval� fscommand�getTimer�getURL�
getVersion�
parseFloat�parseInt�setInterval�trace�updateAfterEvent�unescape�
[$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 � ��textr% r% �>/usr/lib/python3/dist-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 �Builtinr� �Otherr �Float�Hex�Integer�Double�tokensr) r% r% r% r( r s\ �����'�(�)����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�fdefdejfdejfdejfeefde j!fde j"fde j#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 3�
actionscript3�as3r )zapplication/x-actionscript3ztext/x-actionscript3ztext/actionscript3r 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)\br r! r" r# r$ z[~^*!%&<>|+=:;,/?\\{}\[\]().-]+z(\s*)(\.\.\.)?(z |\*)(\s*)�defvalz\)�typez(\s*)(:)(\s*)(z|\*)z#pop:2z(=)(\s*)([^(),]+)(\s*)(,?)�#pop�,)r rC rF rE c C s t �d| �rdS dS )Nz\w+\s*:\s*\wg333333�?r )r2 �matchr& r% r% r( r) � s zActionScript3Lexer.analyse_textN)*r* r+ r, r- r. r/ r0 r1 �
identifier�typeidentifierr2 r3 � MULTILINEr4 r r r r8 r r� r r
r �Typer� r r5 r6 r
r7 � Attributer9 r r< r= r> r? r r r r@ r) r% r% r% r( 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
�MXML�mxmlz*.mxmlztext/xmlzapplication/xmlz[^<&]+z&\S*?;z(\<\!\[CDATA\[)(.*?)(\]\]\>)z<!--�commentz <\?.*?\?>z<![^>]*>z<\s*[\w:.-]+�tagz<\s*/\s*[\w:.-]+\s*>z[^-]+z-->rG �-r z[\w.:-]+\s*=�attrz/?\s*>z".*?"z'.*?'z[^\s>]+)r rQ rR rT N)r* r+ r, r- r2 rL r3 r4 r. r/ r0 � mimetimesr r �Entityr r
r r r �Preproc�Tagr rN r@ r% r% r% r( r � s@ �
��
��
�r )r- r2 �pygments.lexerr r r r r r �pygments.tokenr r r
r r r
r r r �__all__r r r r% r% r% r( �<module> s
,bU