+
    TBi%                     j    R t ^ RIt^ RIHtHtHt ^ RIHtHtH	t	H
t
HtHtHtHt R.t ! R R]4      tR# )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                   l  a  ] tR t^t o RtRtRt. R,OtR.tR.t	Rt
R]! R4      ]! R	4      ]! R
4      ]! R4      ]! R4      ]! R4      ]! R4      ]! R4      ]! R4      R]3.
RR]P                  3R]P                  R3.RR]P                  R3R]P                  3R]P                  3.R	R]! ]P"                  ]P&                  4      3.R
R]3R]! ]]P"                  ]P&                  4      3.RR]P*                  3.RR]P,                  3.RR]! ]]P2                  4      3R]P4                  3.RR ]P8                  3R!]P                  3R"]P:                  3R#]! ]]P"                  4      3R$]! ]]P"                  4      3.RR%]P>                  3R&]3R']P@                  3.RR(]P"                  3./t!R) t"R*t#V t$R+# )-r   z"
For Tera Term macro source code.
zTera Term macrozhttps://ttssh2.osdn.jp/z*.ttlztext/x-teratermmacroz2.4rootcommentslabelscommandszbuiltin-variableszuser-variables	operatorsznumeric-literalszstring-literalszall-whitespacez\Sz	;[^\r\n]*z/\*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+c                    \         P                  ! \        P                  R ,          ^ ,          ^ ,          V 4      '       d   R# R# )r   g{Gz?N)researchr   tokens)texts   &=/usr/lib/python3.14/site-packages/pygments/lexers/teraterm.pyanalyse_textTeraTermLexer.analyse_textC  s1    99]))*5a8;TBB C     N)teratermmacroteratermttl)%__name__
__module____qualname____firstlineno____doc__nameurlaliases	filenames	mimetypesversion_addedr   r   r   Single	Multiliner   
Whitespacer   Labelr   BuiltinVariabler   r
   IntegerHexr	   CharDoubler   WordSymbolr   r   __static_attributes____classdictcell__)__classdict__s   @r   r   r      sN     D
#C2G	I'(IM 	JHJ'($%K &'%&$%DM
 	7>>*W&&5
 	W&&/))*g''(

 	'$//4::)NO
 	HR UKX 4gt

;=[O
` 	6 9
@ 	$dmm4
 	hx@A,
 	+V[[96==)6==)hudoo>?hudoo>?
 	."H-fmm$

 	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   
qJ qr   