
    Mh                         d Z ddlmZmZ ddlmZ ddl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mZ dgZd ZdZd	Zd
Z G d de          ZdS )z
    pygments.lexers.usd
    ~~~~~~~~~~~~~~~~~~~

    The module that parses Pixar's Universal Scene Description file format.

    :copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
    )
RegexLexerbygroups)words)COMMON_ATTRIBUTESKEYWORDS	OPERATORSSPECIAL_NAMESTYPES)	CommentKeywordNameNumberOperatorPunctuationStringText
WhitespaceUsdLexerc                 ,    t          | dd          |fgS )Nz\b)prefixsuffix)words_)r   type_s     S/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/pygments/lexers/usd.py	_keywordsr      s    E%666>??    z(\w+(?:\[\])?)z%(\w+(?:\:\w+)*)(?:(\.)(timeSamples))?z([ \t]+)c                   \   e Zd ZdZdZdZddgZddgZdZd	d
e	 de
 de d eej        eej        eej        eej        eej        j        ee          fd
e	 e
 de d eej        eej        eej        eej        j        ee	  	        fde	 e
 de d eej        eej        eej        eej        j        ee	  	        fe
 e	 e d eej        eej        eej        j        ee          fg eeej                  z    eeej                  z    eeej                  z   dej        fgz    eee          z   d eD             z    eeej                  z   defdej        fdefdefdefde fde!fde!fde!fde!fdej"        fde!j#        fde!j$        fdej%        fdefd efd!efgz   iZ&d"S )#r   zN
    A lexer that parses Pixar's Universal Scene Description file format.
    USDz1https://graphics.pixar.com/usd/release/index.htmlusdusdaz*.usdz*.usdaz2.6rootz(custom)z(uniform)(\s+)z(\s+)z(\s*)(=)z	(uniform)z\b\w+:[\w:]+\bc                 0    g | ]}|d z   t           j        fS )z\[\])r   Type).0r   s     r   
<listcomp>zUsdLexer.<listcomp>@   s#    <<<U%'/7<	(<<<r   z
[(){}\[\]]z#.*?$,;=z$[-]*([0-9]*[.])?[0-9]+(?:e[+-]*\d+)?z'''(?:.|\n)*?'''z"""(?:.|\n)*?"""z'.*?'z".*?"z$<(\.\./)*([\w/]+|[\w/]+\.\w+[\w:]*)>z@.*?@z\(.*"[.\\n]*".*\)z\A#usda .+$z\s+z\w+z[_:.]+N)'__name__
__module____qualname____doc__nameurlaliases	filenamesversion_added_WHITESPACE_TYPE_BASE_ATTRIBUTEr   r   Tokenr   r#   r   	Attributer   Tokensr   r   r   r	   Builtinsr   r   r
   r   r   Singler   r   	NamespaceInterpolDocHashbangtokens r   r   r   r      s         D
=CfoG(#IM 	YYYEYYYYYXgmZ
lJl):xA AB LKeKK/KKKXgmZzndDL,?   ! M+LuLL?LLLXgmZzndDL,?   ! >>_>>>XglJl):xA AB
" 		(GN++#,$ 		-//%0& 		#T^44'5( T^	,-).* 		)X&&+', 	=<e<<<-=. 		%&&/'2 K(gn%++(O4f= &) &)vv4dnEv'!6:.W-.Z TN$#	
1*
,FFFr   N)r,   pygments.lexerr   r   r   r   pygments.lexers._usd_builtinsr   r   r   r	   r
   pygments.tokenr   r   r   r   r   r   r   r   r   __all__r   r3   r4   r2   r   r?   r   r   <module>rD      sO    0 / / / / / / / * * * * * *$ $ $ $ $ $ $ $ $ $ $ $ $ $* * * * * * * * * * * * * * * * * * * * * * ,@ @ @ 	:7 7 7 7 7z 7 7 7 7 7r   