
    L&i                     t    d Z ddl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lmZ dgZ G d de          ZdS )z
    pygments.lexers.tcl
    ~~~~~~~~~~~~~~~~~~~

    Lexers for Tcl and related languages.

    :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
    )
RegexLexerincludewords)TextCommentOperatorKeywordNameStringNumber
Whitespaceshebang_matchesTclLexerc                      e Zd ZdZ eddd          Z eddd          ZdZdZdgZ	d	d
gZ
g dZd>dZi d ed           ed           ed          defgd eee          d eeed          d eeed          d eeed          ddedfdedfdedfdej        d fd!ej        fd"efgdd#e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d*efgd+d,ed-fd.ed-fd/ef ed           ed          gd0ded1f ed+          gd2d3ed1f ed+          gd4d5ed1f ed+          gd dej        d6fd7ej        fdej        d-fgd6dej        d6fd8ej        fd5ej        d-fgdded-f ed           ed           ed          gdd3ed-f ed           ed           ed          gdd5ed-f ed           ed           ed          gd9d:ed-fd;efgZd< Zd=S )?r   z:
    For Tcl source code.

    .. versionadded:: 0.10
    )afterapplyarraybreakcatchcontinueelseifelseerrorevalexprforforeachglobalif	namespaceprocrenamereturnsetswitchthentraceunsetupdateuplevelupvarvariablevwaitwhilez\b)prefixsuffix)Kappendbgerrorbinarycdchanclockcloseconcatddedictencodingeofexecexitfblocked
fconfigurefcopyfile	fileeventflushformatgetsglobhistoryhttpincrinfointerpjoinlappendlassignlindexlinsertlistllengthloadloadTklrangelrepeatlreplacelreverselsearchlsetlsortmathfuncmathopmemorymsgcatopenpackagepidzpkg::createpkg_mkIndexplatformzplatform::shellputspwd	re_syntaxreadrefchanregexpregistryregsubscanseeksocketsourcesplitstringsubsttelltimetmunknownunloadTclz&https://www.tcl.tk/about/language.htmltclz*.tclz*.rvt)z
text/x-tclztext/x-script.tclzapplication/x-tcl c                 t    | t           d|z   f|t          j        d|z   fdt          j        d|z   fdt          dfgS )Nparamsz	([\w.-]+)#comment)r	   r
   BuiltinVariabler   )keyword_cmds_rebuiltin_cmds_recontexts      `/home/geonatureadmin/si_en_reseau/tutos/venv/lib/python3.11/site-packages/pygments/lexers/tcl.py_gen_command_ruleszTclLexer._gen_command_rules4   sG    gx''9:dlHw,>?4=(W*<=7I&	
 	
    rootcommandbasicdataz\}zcommand-in-bracez	-in-bracezcommand-in-bracketz-in-bracketzcommand-in-parenz	-in-parenz\(parenz\[bracketz\{brace"rt   z(eq|ne|in|ni)\bz/!=|==|<<|>>|<=|>=|&&|\|\||\*\*|[-+~!*/%<>&^|?:]z\s+z0x[a-fA-F0-9]+z0[0-7]+z\d+\.\d+z\d+z
\$[\w.:-]+z\$\{[\w.:-]+\}z
[\w.,@:-]+r   ;#popz\nz(else|elseif|then)\bzparams-in-brace)r   r   zparams-in-parenz\)zparams-in-bracketz\]zstring-squarez(?s)(\\\\|\\[0-7]+|\\.|[^"\\])z$(?s)(\\\\|\\[0-7]+|\\.|\\\n|[^\]\\])r   z	.*[^\\]\nz.*\\\nc                 "    t          | d          S )Nz(tcl)r   )texts    r   analyse_textzTclLexer.analyse_text   s    tX...r   N)r}   )__name__
__module____qualname____doc__r   r   r   nameurlaliases	filenames	mimetypesr   r   r	   r   Doubler   Wordr   r   HexOctFloatIntegerr
   r   r   r   tokensr    r   r   r   r      s<         e 
 u. . .O e + 49H H HO D
2CgG'"IHHHI
 
 
 
VGIGGGFOOG	
V 	%%oGGV 	../>/:< <V 	001@1>@ @V 	../>/:< <V" 	GW%GY'GW%6=(+/?J
#V2 	Z 
+$&,'V^$DM*.D!	
3VF 	7F#D&!$g.GGGFOO
GVT 	G-.GH
UV\ 	G-.GH
]Vd 	G-.GH
eVl 	FM?3.>6=&)
mVv 	FM?34fmDFM6*
wV@ 	GV$G&''GGGFOO	
AVL 	GV$G&''GGGFOO	
MVX 	GV$G())GGGFOO	
YVd 	7F+ 
eVFp/ / / / /r   N)r   pygments.lexerr   r   r   pygments.tokenr   r   r   r	   r
   r   r   r   pygments.utilr   __all__r   r   r   r   <module>r      s     6 5 5 5 5 5 5 5 5 5                    ) ) ) ) ) ),B/ B/ B/ B/ B/z B/ B/ B/ B/ B/r   