File: //lib/python3/dist-packages/pygments/lexers/__pycache__/actionscript.cpython-311.pyc
�
�E�c�- � � � d Z ddlZddlmZmZmZmZmZmZ ddl m
Z
mZmZm
Z
mZmZmZmZmZ g d�Z G d� de� � Z G d� d e� � Z G d
� de� � ZdS )z�
pygments.lexers.actionscript
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Lexers for ActionScript and MXML.
:copyright: Copyright 2006-2022 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 � � e Zd ZdZdZddgZdgZg d�Zej Z
ddefd ej
fd
ej fdej fdefd
ef edd�� � ef edd�� � ej fdej f edd�� � ej f edd�� � ej fdej fdej fdej fdej fdej fdej
fgiZ d� 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 � � 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 � ��texts �>/usr/lib/python3/dist-packages/pygments/lexers/actionscript.py�analyse_textzActionScriptLexer.analyse_textp s � � �q� N)"�__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� � � � � � �� � �D��t�$�G���I�&� &� &�I�
�I�E��
�Z� �
���(�
�7�,�-�
0�&�,�?�
&��1�
�{�+�
�U� � #(� )� )� )�
�
� �U� /� 8=� >� >� >�
�
�
"� J�
�
�
�
�U� '�N "'�O'(� '(� '(�P �\�Q(
�R �U� � %*� +� +� +�
�]�
� �t�z�*�
5�v�|�D�
�V�Z�(�
���'�
(�&�-�8�
(�&�-�8�SJ
�L�F�\� � � � r- r c �\ � e Zd ZdZdZdZddgZdgZg d�ZdZ e d z Z
ej ej
z Zd
efde z dz eej ej ee� � d
fde z dz e
z dz eej eeeeeej � � fde z dz eeeej e� � fde
z dz eeeej ee� � fdej fdej fdej fde z dz eeej � � fdefdej fdej fdej fe efde!j"