
    Mh
                        d Z ddlZddlmZmZmZmZ ddlmZm	Z	 ddl
mZmZmZmZmZmZ ddgZdefd	 eeej        e          d
fd eeej        e          fd eeej                  dfgdefd eej        eee          dfdefdej        fd eeee          dfgd eeej                  fd ee          dfgdedfdedfdedf ed          gdedfdedf ed          gdZ G d de          Z G d  de	          ZdS )!z
    pygments.lexers.jsx
    ~~~~~~~~~~~~~~~~~~~

    Lexers for JSX (React) and TSX (TypeScript flavor).

    :copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
    N)bygroupsdefaultincludeinherit)JavascriptLexerTypeScriptLexer)NameOperatorPunctuationStringText
WhitespaceJsxLexerTsxLexerz</?>z(<)(\w+)(\.?)tagz(</)(\w+)(>)z	(</)(\w+)fragmentz\s+z([\w-]+)(\s*)(=)(\s*)attrz[{}]+z[\w\.]+z(/?)(\s*)(>)z#popz(.)(\w+)z(>)z\{
expressionz".*?"z'.*?'z#pushz\}root)jsxr   r   r   r   c                   v    e Zd ZdZdZddgZddgZddgZd	Zd
Z	e
j        e
j        z  Zd ed          egieZdS )r   z+For JavaScript Syntax Extension (JSX).
    JSXr   reactz*.jsxz*.reactztext/jsxztext/typescript-jsxzhttps://facebook.github.io/jsx/z2.17r   N__name__
__module____qualname____doc__namealiases	filenames	mimetypesurlversion_addedre	MULTILINEDOTALLflagsr   r   
_JSX_RULEStokens     S/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/pygments/lexers/jsx.pyr   r   ;   s          DgG)$I23I
+CML29$E 	GENN

 FFFr,   c                   p    e Zd ZdZdZdgZdgZdgZdZdZ	e
j        e
j        z  Zd ed	          egieZd
S )r   z%For TypeScript with embedded JSX
    TSXtsxz*.tsxztext/typescript-tsxz5https://www.typescriptlang.org/docs/handbook/jsx.htmlz2.19r   r   Nr   r+   r,   r-   r   r   Q   sv          DgG	I&'I
ACML29$E 	GENN

 FFFr,   )r   r%   pygments.lexerr   r   r   r   pygments.lexers.javascriptr   r   pygments.tokenr	   r
   r   r   r   r   __all__Tag	Attributer)   r   r   r+   r,   r-   <module>r7      s]    
			 > > > > > > > > > > > > G G G G G G G G                z
" 
+	88K;GGOH[$(K88	

 H[$(++	
 
	!88DNJR\#]#]_ef	;	T^$	((;kBBFK 
hh{DN;;<	+&&/
 
\*	66"	66"	 
W%	V$?$ $
N       ,         r,   