
    5h-                         S r SSKrSSKJrJrJrJrJrJr  SSK	J
r
JrJrJrJrJrJrJrJr  / SQr " S S\5      r " S S	\5      r " S
 S\5      rg)z
pygments.lexers.actionscript
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Lexers for ActionScript and MXML.

:copyright: Copyright 2006-2025 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                      \ rS rSrSrSrSS/rS/r/ SQrSr	S	r
\R                  rS
S\4S\R                   4S\R"                  4S\R&                  4S\4S\4\" SSS9\4\" SSS9\R0                  4S\R2                  4\" SSS9\R6                  4\" SSS9\R8                  4S\R:                  4S\R>                  4S\R@                  4S\RB                  4S\RD                  4S\R                   4/0r#S r$Sr%g )!r      z
For ActionScript source code.
ActionScriptactionscriptas*.as)zapplication/x-actionscriptztext/x-actionscriptztext/actionscriptz*https://en.wikipedia.org/wiki/ActionScriptz0.9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                     g)zThis 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    g/var/www/html/cementerio_25MayoBackend/env/lib/python3.13/site-packages/pygments/lexers/actionscript.pyanalyse_textActionScriptLexer.analyse_textp   s         r)  N)&__name__
__module____qualname____firstlineno____doc__namealiases	filenames	mimetypesurlversion_addedreDOTALLflagsr   r
   Single	Multiliner   Regexr   r   r   r   DeclarationConstantr   Builtinr   Otherr   FloatHexIntegerDoubletokensr-  __static_attributes__r)  r/  r,  r   r      st    Dt$GI&I
6CMIIEZ (7,,-0&,,?&1{+  #(	)
   / 8=	>
   " J 'N "'O'(P \\Q(R   %*	+
 ]] tzz*5v||DVZZ('(&--8(&--8SJ
LF\r/  r   c                       \ rS rSrSrSrSrSS/rS/r/ SQr	S	r
S
r\S-   r\R                  \R                  -  rS\4S\-   S-   \" \R(                  \R,                  \\5      S4S\-   S-   \-   S-   \" \R(                  \\\\\\R4                  5      4S\-   S-   \" \\\R6                  \5      4S\-   S-   \" \\\R4                  \\5      4S\R:                  4S\R<                  4S\R@                  4S\-   S-   \" \\RB                  5      4S\4S\R(                  4S\RD                  4S\R,                  4\\4S\#RH                  4S\#RJ                  4S \#RL                  4S!\RN                  4S"\R:                  4S#\4/S\4S$\-   S-   \-   S%-   \" \\\\\\\R4                  \5      S&4S'\S(4/S)\-   S*-   \" \\\\R4                  5      S+4S\S+4\(" S+5      /S,\" \\\)" \*5      \\5      S-4S.\S-4\(" S-5      /S/.r+S0 r,S1r-g2)3r   v   z!
For ActionScript 3 source code.
zActionScript 3zNhttps://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/index.htmlactionscript3as3r   )zapplication/x-actionscript3ztext/x-actionscript3ztext/actionscript3z0.11r"  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   rO  rR  rQ  c                 >    [         R                  " SU 5      (       a  gg)Nz\w+\s*:\s*\wg333333?r   )r;  matchr*  s    r,  r-  ActionScript3Lexer.analyse_text   s    88OT**r/  r)  N).r0  r1  r2  r3  r4  r5  r9  r6  r7  r8  r:  
identifiertypeidentifierr;  r<  	MULTILINEr=  r   r   r   rA  r   r   r	   r   r   Typer   r
   r>  r?  r   r@  	AttributerB  r   rE  rF  rG  rH  r   r   r   rI  r-  rJ  r)  r/  r,  r   r   v   s    D
ZC&GI'IM!J/1NII$E Z +m;g))4==$I "J.1CC"#g)):tZV`ll$% *J6Ggz4>>:FHn,}<gz7<<XNP(7,,-0&,,?
"T)8Hdnn+MN/ D   " J "]], 5v||DVZZ('(&--8(&--8/:K&
P Z *,/AA*+j+tZ:llJ019; Hf%
 /'9j(JExQT8$H	
 +h
E$KXNPVX8V$FO	
m<F|r/  r   c            	          \ rS rSrSr\R                  \R                  -  rSr	S/r
S/rSrSrS\4S	\R                   4S
\" \\" \5      \5      4S\S4S\R,                  4S\R,                  4S\R.                  S4S\R.                  4/S\4S\S4S\4/S\4S\R2                  S4S\R.                  S4/S\4S\S4S\S4S\S4/S.rSrg) r      zW
For MXML markup.
Nested AS3 in <script> tags is highlighted by the appropriate lexer.
MXMLmxmlz*.mxmlz"https://en.wikipedia.org/wiki/MXMLz1.1z[^<&]+z&\S*?;z(\<\!\[CDATA\[)(.*?)(\]\]\>)z<!--commentz	<\?.*?\?>z<![^>]*>z<\s*[\w:.-]+tagz<\s*/\s*[\w:.-]+\s*>z[^-]+z-->rS  -r   z[\w.:-]+\s*=attrz/?\s*>z".*?"z'.*?'z[^\s>]+)r   ra  rb  rd  r)  N)r0  r1  r2  r3  r4  r;  rZ  r<  r=  r5  r6  r7  r9  r:  r	   r   Entityr   r   r   r   r
   PreprocTagr   r\  rI  rJ  r)  r/  r,  r   r      s)    LL299$EDhG
I
.CM t$,fe$67@BWi(7??+)dhh.$dhh/

 gGV$'N
 Z dnnf5&)
 Z ff%ff%(	
-Fr/  r   )r4  r;  pygments.lexerr   r   r   r   r   r   pygments.tokenr	   r
   r   r   r   r   r   r   r   __all__r   r   r   r)  r/  r,  <module>rk     sV    
 L L$ $ $ C`
 `DR Rj(
 (r/  