3
.ßL]­+  ã               @   s’   d Z ddlZddlmZmZmZmZmZmZ ddl	m
Z
mZmZmZmZmZmZmZ dddgZG dd„ deƒZG d	d„ deƒZG d
d„ deƒZdS )zÞ
    pygments.lexers.actionscript
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Lexers for ActionScript and MXML.

    :copyright: Copyright 2006-2019 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 Zd ZdZdZddgZdgZdddgZej	Z
d	d
efdejfdejfdejfdefdefe�d d'd(�efe�d!d'd(�ejfd?ejfe�d"d'd(�ejfe�d#d'd(�ejf�dejf�dejf�dejf�dejf�dejf�dejfgiZ �dS ($  r   zB
    For ActionScript source code.

    .. versionadded:: 0.9
    ZActionScriptÚasZactionscriptz*.aszapplication/x-actionscriptztext/x-actionscriptztext/actionscriptÚrootz\s+z//.*?\nz	/\*.*?\*/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Ú	intrinsicÚ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Úunescapez[$a-zA-Z_]\w*z%[0-9][0-9]*\.[0-9]+([eE][0-9]+)?[fd]?z0x[0-9a-f]+z[0-9]+z"(\\\\|\\"|[^"])*"z'(\\\\|\\'|[^'])*'N)r   r   r   r   r   r   r   r   r   r   r   r   r    r!   r"   r#   r$   r%   r&   r'   r(   r   r)   )r+   r,   r-   r.   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r   r9   r:   r;   r<   r=   r>   r?   r@   )ÆrA   rB   rC   rD   rE   rF   rG   rH   rI   rJ   rK   rL   rM   rN   rO   rP   rQ   rR   rS   rT   rU   rV   rW   rX   rY   rZ   r[   r\   r]   r^   r_   r`   ra   rb   rc   rd   re   rf   rg   rh   ri   rj   rk   rl   rm   rn   ro   rp   rq   rr   rs   rt   ru   rv   rw   rx   ry   rz   r{   r|   r}   r~   r   r€   r�   r‚   rƒ   r„   r…   r†   r‡   rˆ   r‰   rŠ   r‹   rŒ   r�   rŽ   r�   r�   r‘   r’   r“   r”   r•   r–   r—   r˜   r™   rš   r›   rœ   r�   rž   rŸ   r    r¡   r¢   r£   r¤   r¥   r¦   r§   r¨   r©   rª   r«   r¬   r­   r®   r¯   r°   r±   r²   r³   r   r´   rµ   r¶   r·   r¸   r¹   rº   r»   r¼   r½   r¾   r¿   rÀ   rÁ   rÂ   rÃ   rÄ   rÅ   rÆ   rÇ   rÈ   rÉ   rÊ   rË   rÌ   rÍ   rÎ   rÏ   rÐ   rÑ   rÒ   rÓ   rÔ   rÕ   rÖ   r×   rØ   rÙ   rÚ   rÛ   rÜ   rÝ   rÞ   rß   rà   r   rá   râ   rã   rä   rå   ræ   rç   rè   ré   rê   rë   rì   rí   rî   rï   rð   rñ   rò   ró   rô   rõ   rö   r÷   rø   rù   rú   rû   rü   rý   rþ   rÿ   r   r  r  r  r  )r  r  r  r  r	  r
  r  r  r  r  r  r  r  r  r  r  r  r  r  )!Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚnameÚaliasesÚ	filenamesÚ	mimetypesÚreÚDOTALLÚflagsr   r	   ÚSingleÚ	Multiliner   ÚRegexr
   r   r   r   ÚDeclarationÚConstantr   ZBuiltinr€   ZOtherr   ÚFloatÚHexÚIntegerÚDoubleÚtokens© r-  r-  úB/tmp/pip-install-5sebvq2j/pygments/pygments/lexers/actionscript.pyr      s¢      
   
                                      
   





c               @   sè  e Zd ZdZdZddgZdgZdddgZd	Zed
 Z	e
je
jB Zdefde d eejejeeƒdfde d e	 d eejeeeeeejƒfde d eeeejeƒfde	 d eeeejeeƒfdejfdejfdejfde d eeejƒfdefdejfdejfdejfeefdej fdej!fdej"fd ej#fd!ejfd"efgdefd#e d e	 d$ eeeeeeeejeƒd%fd&ed'fgd(e	 d) eeeeejƒd*fded*fe$d*ƒgd+eeee%e&ƒeeƒd,fd-ed,fe$d,ƒgd.œZ'd/d0„ Z(d1S )2r   zE
    For ActionScript 3 source code.

    .. versionadded:: 0.11
    zActionScript 3Zas3Zactionscript3z*.aszapplication/x-actionscript3ztext/x-actionscript3ztext/actionscript3z[$a-zA-Z_]\w*z(?:\.<\w+>)?z\s+z(function\s+)(z
)(\s*)(\()Ú
funcparamsz(var|const)(\s+)(z)(\s*)(:)(\s*)(ú)z(import|package)(\s+)((?:z|\.)+)(\s*)z(new)(\s+)(z//.*?\nz	/\*.*?\*/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)\bz%[0-9][0-9]*\.[0-9]+([eE][0-9]+)?[fd]?z0x[0-9a-f]+z[0-9]+z"(\\\\|\\"|[^"])*"z'(\\\\|\\'|[^'])*'z[~^*!%&<>|+=:;,/?\\{}\[\]().-]+z(\s*)(\.\.\.)?(z	|\*)(\s*)Údefvalz\)Útypez(\s*)(:)(\s*)(z|\*)z#pop:2z(=)(\s*)([^(),]+)(\s*)(,?)z#popú,)r   r/  r2  r1  c             C   s   t jd| ƒrdS dS )Nz\w+\s*:\s*\wg333333Ó?r   )r   Úmatch)Útextr-  r-  r.  Úanalyse_textÁ   s    zActionScript3Lexer.analyse_textN))r  r  r  r  r  r  r  r  Ú
identifierZtypeidentifierr   r!  Ú	MULTILINEr"  r   r   r   r&  r   r€   r
   r   ÚTyper¯   r	   r#  r$  r   r%  Ú	Attributer'  r   r(  r)  r*  r+  r   r   r   r,  r6  r-  r-  r-  r.  r   r   sj   




c            	   @   sØ   e Zd ZdZejejB ZdZdgZ	dgZ
ddgZdefdejfd	eeeeƒeƒfd
edfdejfdejfdejdfdejfgdefdedfdefgdefdejdfdejdfgdefdedfdedfdedfgdœZdS )r   z~
    For MXML markup.
    Nested AS3 in <script> tags is highlighted by the appropriate lexer.

    .. versionadded:: 1.1
    ZMXMLZmxmlz*.mxmlztext/xmlzapplication/xmlz[^<&]+z&\S*?;z(\<\!\[CDATA\[)(.*?)(\]\]\>)z<!--Úcommentz	<\?.*?\?>z<![^>]*>z<\s*[\w:.-]+Útagz<\s*/\s*[\w:.-]+\s*>z[^-]+z-->z#popú-z\s+z[\w.:-]+\s*=Úattrz/?\s*>z".*?"z'.*?'z[^\s>]+)r   r;  r<  r>  N)r  r  r  r  r   r8  r!  r"  r  r  r  Z	mimetimesr   r   ÚEntityr   r   r   r   r	   ZPreprocZTagr:  r,  r-  r-  r-  r.  r   Ç   s2   


)r  r   Zpygments.lexerr   r   r   r   r   r   Zpygments.tokenr   r	   r
   r   r   r   r   r   Ú__all__r   r   r   r-  r-  r-  r.  Ú<module>
   s    (
]U