
    Mh%                     p    d Z ddl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gZ G d de          ZdS )z
    pygments.lexers.teraterm
    ~~~~~~~~~~~~~~~~~~~~~~~~

    Lexer for Tera Term macro files.

    :copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
    N)
RegexLexerincludebygroups)TextCommentOperatorNameStringNumberKeywordErrorTeraTermLexerc                      e Zd ZdZdZdZg dZdgZdgZdZ	 e
d           e
d	           e
d
           e
d           e
d           e
d           e
d           e
d           e
d          defg
dej        fdej        dfgdej        dfdej        fdej        fgd eej        ej                  fgdefd eeej        ej                  fgdej        fgdej        fgd eeej                  fdej        fgd ej        fd!ej        fd"ej        fd# eeej                  fd$ eeej                  fgd%ej        fd&efd'ej        fgd(ej        fgd)Z d* Z!d+S ),r   z*
    For Tera Term macro source code.
    zTera Term macrozhttps://ttssh2.osdn.jp/)teratermmacroteratermttlz*.ttlztext/x-teratermmacroz2.4commentslabelscommandsbuiltin-variablesuser-variables	operatorsnumeric-literalsstring-literalsall-whitespacez\Sz	;[^\r\n]*z/\*
in-commentz\*/z#popz[^*/]+z[*/]z(?i)^(\s*)(:[a-z0-9_]+)aL  (?i)\b(basename|beep|bplusrecv|bplussend|break|bringupbox|callmenu|changedir|checksum16|checksum16file|checksum32|checksum32file|checksum8|checksum8file|clearscreen|clipb2var|closesbox|closett|code2str|connect|continue|crc16|crc16file|crc32|crc32file|cygconnect|delpassword|dirname|dirnamebox|disconnect|dispstr|do|else|elseif|enablekeyb|end|endif|enduntil|endwhile|exec|execcmnd|exit|expandenv|fileclose|fileconcat|filecopy|filecreate|filedelete|filelock|filemarkptr|filenamebox|fileopen|fileread|filereadln|filerename|filesearch|fileseek|fileseekback|filestat|filestrseek|filestrseek2|filetruncate|fileunlock|filewrite|filewriteln|findclose|findfirst|findnext|flushrecv|foldercreate|folderdelete|foldersearch|for|getdate|getdir|getenv|getfileattr|gethostname|getipv4addr|getipv6addr|getmodemstatus|getpassword|getspecialfolder|gettime|gettitle|getttdir|getver|if|ifdefined|include|inputbox|int2str|intdim|ispassword|kmtfinish|kmtget|kmtrecv|kmtsend|listbox|loadkeymap|logautoclosemode|logclose|loginfo|logopen|logpause|logrotate|logstart|logwrite|loop|makepath|messagebox|mpause|next|passwordbox|pause|quickvanrecv|quickvansend|random|recvln|regexoption|restoresetup|return|rotateleft|rotateright|scprecv|scpsend|send|sendbreak|sendbroadcast|sendfile|sendkcode|sendln|sendlnbroadcast|sendlnmulticast|sendmulticast|setbaud|setdate|setdebug|setdir|setdlgpos|setdtr|setecho|setenv|setexitcode|setfileattr|setflowctrl|setmulticastname|setpassword|setrts|setspeed|setsync|settime|settitle|show|showtt|sprintf|sprintf2|statusbox|str2code|str2int|strcompare|strconcat|strcopy|strdim|strinsert|strjoin|strlen|strmatch|strremove|strreplace|strscan|strspecial|strsplit|strtrim|testlink|then|tolower|toupper|unlink|until|uptime|var2clipb|wait|wait4all|waitevent|waitln|waitn|waitrecv|waitregex|while|xmodemrecv|xmodemsend|yesnobox|ymodemrecv|ymodemsend|zmodemrecv|zmodemsend)\bz#(?i)(call|goto)([ \t]+)([a-z0-9_]+)a  (?i)(groupmatchstr1|groupmatchstr2|groupmatchstr3|groupmatchstr4|groupmatchstr5|groupmatchstr6|groupmatchstr7|groupmatchstr8|groupmatchstr9|inputstr|matchstr|mtimeout|param1|param2|param3|param4|param5|param6|param7|param8|param9|paramcnt|params|result|timeout)\bz(?i)[a-z_][a-z0-9_]*z(-?)([0-9]+)z(?i)\$[0-9a-f]+z(?i)#(?:[0-9]+|\$[0-9a-f]+)z	'[^'\n]*'z	"[^"\n]*"z('[^']*)(\n)z("[^"]*)(\n)zand|not|or|xorz[!%&*+<=>^~\|\/-]+z[()]z\s+)rootr   r   r   r   r   r   r   r   r   r   c                 l    t          j        t          j        d         d         d         |           rdS d S )Nr   r   g{Gz?)researchr   tokens)texts    X/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/pygments/lexers/teraterm.pyanalyse_textzTeraTermLexer.analyse_textC  s7    9])*5a8;TBB 	4	 	    N)"__name__
__module____qualname____doc__nameurlaliases	filenames	mimetypesversion_addedr   r   r   Single	Multiliner   
Whitespacer	   Labelr   BuiltinVariabler   r   IntegerHexr
   CharDoubler   WordSymbolr!   r$    r%   r#   r   r      sf         D
#C222G	I'(IM GJGHGJG'((G$%%GK  G&''G%&&G$%%DM
 7>*W&5

 W&/)*g'(
 ($/4:)N)NO

HR UKX 4Xgt
;;=[O
d6 9
B %dm4
 hhx@@A,

 ,V[96=)6=)hhudo>>?hhudo>>?
 ."H-fm$
 T_%
{` `FH	    r%   )r)   r   pygments.lexerr   r   r   pygments.tokenr   r   r   r	   r
   r   r   r   __all__r   r<   r%   r#   <module>r@      s     
			 8 8 8 8 8 8 8 8 8 8                    
q q q q qJ q q q q qr%   