
    %                     h    S r SSKrSSKJrJrJr  SSKJrJrJ	r	J
r
JrJrJrJr  S/r " S S\5      rg)z
pygments.lexers.teraterm
~~~~~~~~~~~~~~~~~~~~~~~~

Lexer for Tera Term macro files.

:copyright: Copyright 2006-2023 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                   H   \ rS rSrSrSrSr/ SQrS/rS/r	\
" S5      \
" S	5      \
" S
5      \
" S5      \
" S5      \
" S5      \
" S5      \
" S5      \
" S5      S\4/
S\R                  4S\R                  S4/S\R                  S4S\R                  4S\R                  4/S\" \R                   \R$                  5      4/S\4S\" \\R                   \R$                  5      4/S\R(                  4/S\R*                  4/S\" \\R0                  5      4S\R2                  4/S \R6                  4S!\R                  4S"\R8                  4S#\" \\R                   5      4S$\" \\R                   5      4/S%\R<                  4S&\4S'\R>                  4/S(\R                   4/S).r S* r!S+r"g,)-r      z9
For Tera Term macro source code.

.. versionadded:: 2.4
zTera Term macrozhttps://ttssh2.osdn.jp/)teratermmacroteratermttlz*.ttlztext/x-teratermmacro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    [         R                  " [        R                  S   S   S   U 5      (       a  gg )Nr   r   g{Gz?)researchr   tokens)texts    +lib/third_party/pygments/lexers/teraterm.pyanalyse_textTeraTermLexer.analyse_textD  s1    99]))*5a8;TBB C     N)#__name__
__module____qualname____firstlineno____doc__nameurlaliases	filenames	mimetypesr   r   r   Single	Multiliner   
Whitespacer	   Labelr   BuiltinVariabler   r   IntegerHexr
   CharDoubler   WordSymbolr"   r%   __static_attributes__r(   r'   r$   r   r      s   
 D
#C2G	I'(I JHJ'($%K &'%&$%DM
 7>>*W&&5

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

HR UKX 4gt

;=[O
d6 9
B %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>rC      s<    
 8 8   
rJ rr'   