3
V'ícm ã @ sê d Z ddlZddlmZmZmZmZmZ ddlm Z m
Z
mZmZm
Z
mZmZmZmZmZ ddlmZ dddd d
ddgZG d
d deZG dd deZG dd deZG dd d eZG dd
d
eZG dd deZG dd deZdS )zã
pygments.lexers.basic
~~~~~~~~~~~~~~~~~~~~~
Lexers for BASIC like languages (other than VB.net).
:copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
é N)Ú
RegexLexerÚbygroupsÚdefaultÚwordsÚinclude)
ÚCommentÚErrorÚKeywordÚNameÚNumberÚPunctuationÚOperatorÚStringÚTextÚ
Whitespace)Ú_vbscript_builtinsÚBlitzBasicLexerÚ
BlitzMaxLexerÚMonkeyLexerÚCbmBasicV2LexerÚQBasicLexerÚ
VBScriptLexerÚ
BBCBasicLexerc ] @ sÜ e Zd ZdZdZdZddgZdgZdgZdZ d Z
d
ZdZdee
eef Z
e
d
ZejejB Zdefdeeefdejfdejfdejdfdejfdejfdejfdejfdejfde e fde!fde"j#fdej$fde ee%j&ee!e"j'fdeef ee%j&ee%j(feee"j)ee%j*e ee!ee%j*e"j'ee%j*ee!
fe
ee"j+ee%j*e ee!ee%j*e"j'ee%j*fde ee%j&ee"j'fd e%j*fd!e%j,fd"e%j-fe.dvd(d(d)e"j/fe.dwd(d(d)e%j&fdoe e"j+fgdpejfdqejdrfdsejfgdtZ0duS )xr z>
For BlitzMax source code.
.. versionadded:: 1.4
ZBlitzMaxzhttp://blitzbasic.comZblitzmaxZbmaxz*.bmxz
text/x-bmxz\b(Shl|Shr|Sar|Mod)\bz
@{1,2}|[!#$%]z&\b(Int|Byte|Short|Float|Double|Long)\bz [a-z_]\w*zp(%s)(?:(?:([ \t]*)(%s)|([ \t]*:[ \t]*\b(?:Shl|Shr|Sar|Mod)\b)|([ \t]*)(:)([ \t]*)(?:%s|(%s)))(?:([ \t]*)(Ptr))?)z?((?:[ \t]|\.\.\n)*)([(])z\s+z
(\.\.)(\n)z'.*?\nz*([ \t]*)\bRem\n(\n|.)*?\s*\bEnd([ \t]*)Remú"Ústringz[0-9]+\.[0-9]*(?!\.)z\.[0-9]*(?!\.)z[0-9]+z\$[0-9a-f]+z\%[10]+z9(?:(?:(:)?([ \t]*)(:?%s|([+\-*/&|~]))|Or|And|Not|[=<>^]))z[(),.:\[\]]z
(?:#[\w \t]*)z(?:\?[\w \t]*)z\b(New)\b([ \t]?)([(]?)(%s)z+\b(Import|Framework|Module)([ \t]+)(%s\.%s)z\b(Type|Extends)([ \t]+)(%s)z \b(Ptr)\bz#\b(Pi|True|False|Null|Self|Super)\bz\b(Local|Global|Const|Field)\bÚTNullMethodExceptionÚTNullFunctionExceptionÚTNullObjectExceptionÚTArrayBoundsExceptionÚTRuntimeExceptionz\b)ÚprefixÚsuffixÚStrictÚSuperStrictÚModuleÚ
ModuleInfoÚEndÚReturnÚContinueÚExitÚPublicÚPrivateÚVarÚVarPtrÚChrÚLenÚAscÚSizeOfÚSgnÚAbsÚMinÚMaxÚNewÚReleaseÚDeleteÚIncbinÚ IncbinPtrÚ IncbinLenÚ FrameworkÚIncludeÚImportÚExternÚ EndExternÚFunctionÚEndFunctionÚTypeÚEndTypeÚExtendsÚMethodÚ EndMethodÚAbstractÚFinalÚIfÚThenÚElseÚElseIfÚEndIfÚForÚToÚNextÚStepÚEachInÚWhileÚWendÚEndWhileÚRepeatÚUntilÚForeverÚSelectÚCaseÚDefaultÚ EndSelectÚTryÚCatchÚEndTryÚThrowÚAssertÚGotoÚDefDataÚReadDataÚRestoreDataz(%s)z""z"C?z#popz[^"]+)Úrootr N)r r r r r )Er"