|ePHdZddlZddlmZmZmZmZmZmZddl m Z m Z m Z m Z mZmZmZmZgdZGddeZGdd eZGd d eZy) z pygments.lexers.unicon ~~~~~~~~~~~~~~~~~~~~~~ Lexers for the Icon and Unicon languages, including ucode VM. :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. N) RegexLexerincludebygroupswordsusingthis)TextCommentOperatorKeywordNameStringNumber Punctuation) IconLexer UcodeLexer UniconLexerceZdZdZdZdgZdgZdgZejZ de fde jfde fdejd fd eeje ej"d fd ej$fd ej&fdej(fdej(fdej(fdejfedddej(fedddej.feddefdefdej6fdefdefdeeeefdefdefde fgd ej@fd!ejBfd"ejDfgd#ed$fd%ed&fd'ej.fed(gd#ed)fgd*ed&fd+ejFfd,efd-ej(fed(gd.Z$y/)0rz< For Unicon source code. .. versionadded:: 2.4 Uniconuniconz*.icnz text/unicon[^\S\n]+#.*?\nclass|method|procedure subprogram(record)(\s+)(\w+)type_def^(#line|\$C|\$Cend|\$define|\$else|\$endif|\$error|\$ifdef|\$ifndef|\$include|\$line|\$undef)\b(&null|&fail)\b&allocated|&ascii|&clock|&collections|&column|&col|&control|&cset|¤t|&dateline|&date|&digits|&dump|&errno|&errornumber|&errortext|&errorvalue|&error|&errout|&eventcode|&eventvalue|&eventsource|&e|&features|&file|&host|&input|&interval|&lcase|&letters|&level|&line|&ldrag|&lpress|&lrelease|&main|&mdrag|&meta|&mpress|&mrelease|&now|&output|&phi|&pick|&pi|&pos|&progname|&random|&rdrag|®ions|&resize|&row|&rpress|&rrelease|&shift|&source|&storage|&subject|&time|&trace|&ucase|&version|&window|&x|&y(by|of|not|to)\bz (global|local|static|abstract)\bzpackage|link|import)breakcasecreatecriticaldefaultendalldoelseeveryfailifimportinitial initially invocablenextrepeatreturnsuspendthenthreaduntilwhile\bprefixsuffix(+AbortabsacosActiveAlertanyAnyArbArbnoargsarrayasinatanatanhAttribBalbalBgBreakBreakxcalloutcentercharchdirchmodchownchroot classnameClipCloneclosecofailcollectColor ColorValuecondvar constructorcopyCopyAreacosCouplecryptcsetctime dbcolumnsdbdriverdbkeysdblimits dbproductdbtablesdelaydeletedetabdisplayDrawArc DrawCircleDrawCube DrawCurve DrawCylinderDrawDisk DrawImageDrawLine DrawPoint DrawPolygon DrawRectangle DrawSegment DrawSphere DrawString DrawTorusdtorentab EraseArea errorclearEvent eventmaskEvGetEvSendexecexitexpEyeFailfcntlfdupFencefetchFg fieldnamesfilepairFillArc FillCircle FillPolygon FillRectanglefindflockflushFontfork FreeColor FreeSpacefunctiongetgetchgetchegetegidgetenvgeteuidgetgidgetgrgethostgetpgrpgetpidgetppidgetpw getrusagegetservGetSpace gettimeofdaygetuid globalnamesGotoRCGotoXYgtimehardlinkiandicomIdentityMatriximageInPortinsertInt86integerioctliorishiftistateixorkbhitkeykeywordkillleftLenlistloadloadfunc localnameslocklogLowerlstatmanymapmatch MatrixModemaxmember membernames methodnamesmethodsminmkdirmove MultMatrixmutexnameNewColorNormalsNotAnynumericopenopencloprecordOutPort PaletteChars PaletteColor PaletteKey paramnamesparentPatternPeekPendingpipePixel PlayAudioPokepop PopMatrixPosposprocpullpush PushMatrix PushRotate PushScale PushTranslateput QueryPointerRaiseread ReadImagereadlinkreadsreadyrealreceiveRefreshRemremoverenamereplreverserightrmdirRotateRposRtabrtodrunerrsaveScaleseekselectsendseqserialsetsetenvsetgidsetgrent sethostentsetpgrpsetpwent setserventsetuidsignalsinsortsortfSpanspawnsqlsqrtstat staticnamesstop StopAudiostring structureSucceedSwisymlink sys_errstrsystemsyswriteTabtabtabletanTexcoordTexture TextWidth TranslatetraptrimtruncatetrylocktypeumaskUncoupleunlockuptoutimevariableVAttribwaitWAttribWDefaultWFlushwhere WinAssociate WinButtonWinColorDialogWindowContents WinEditRegion WinFontDialog WinMenuBar WinOpenDialog WinPlayMedia WinSaveDialog WinScrollBarWinSelectDialogwrite WriteImagewritesWSectionWSyncnumberszc<@|<<@|>@|>>@|\.>|->|===|~===|\*\*|\+\+|--|\.|~==|~=|<=|>=|==|=|<<=|<<|>>=|>>|:=:|:=|->|<->|\+:=|\|"(?:[^\\"]|\\.)*"'(?:[^\\']|\\.)*'[*<>+=/&!?@~\\-]z\^(\w+)(\s*|[(,])[\[\]]z<>|=>|[()|:;,.'`{}%&?]\n+3\b([+-]?([2-9]|[12][0-9]|3[0-6])[rR][0-9a-zA-Z]+)\b'[+-]?[0-9]*\.([0-9]*)([Ee][+-]?[0-9]*)?\b([+-]?[0-9]+[KMGTPkmgtp]?)\b\(#pop formal_part;rt "[^"]+"|\w+rootru\)\w+,(:string|:integer|:real)\brxrhrrruN%__name__ __module__ __qualname____doc__raliases filenames mimetypesre MULTILINEflagsr r Singler DeclarationrTypePreProcConstantReservedrr Functionrr r CharacterrrrrHexFloatIntegerVariabletokens8/usr/lib/python3/dist-packages/pygments/lexers/unicon.pyrrsJ DjG II LLE$   ' $  &(;(;\ J " g))4 >  L56=oo G !1!1 2  '// 1!'"2"2 3 0'2B2B C #W%8%8 9 4 =B% Q     =z"'u{=6|]]}> ~ I 67? A !6 * !6#3#3 4 ( + H  $d !< =  $ & 4 TNSj XDVZZ P 7 F . ? K!8 9 ; ' T]] + FO  K / K ( T]] # ;  *G,<,< = FO  uAFrrceZdZdZdZdgZddgZgZejZ de fde jfde fdejd fd eeje ej"d fd ej$fd ej&fdej(fdej(fdej(fdejfedddej(fedddej.feddefdefdej6fdefdeeeefdefdefde fgdej@fd ejBfd!ejDfgd"ed#fd$ed%fd&ej.fed'gd"ed(fgd)ed%fd*ejFfd+efd,ej(fed'gd-Z$y.)/rz4 Lexer for Icon. .. versionadded:: 1.6 Iconiconz*.iconz*.ICONrrrrrrrrrr z(global|local|static)\blink)r!r"r#r%r&r'r(r)r*r+r,r.r0r1r2r3r4r5r7r8r9r:)r>r?r@rArBrFrGrHrIrJrKrMrNrQrRrSrTrUrVrWrYrZr[r\r]r^r_r`rbrcrdrerfrgrhrorprqrrrsrtrurvrwrxryrzr{r|r}r~rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr r r r r rrrrrrrrrrrrrrrrrr r!r"r)r*r+r,r-r/r0r1r2r3r4r6r7r9r:r;r<r=r?r@rArBrCrDrErFrGrHrIrJrKrLrMrNrOrPrRrSrTrUrVrWrXrYrZr[r\r]r^r_r`rarbrcrdrerfrgrhzS===|~===|\*\*|\+\+|--|\.|==|~==|<=|>=|=|~=|<<=|<<|>>=|>>|:=:|:=|<->|<-|\+:=|\|\||\|rirjrkrlrmz<>|=>|[()|:;,.'`{}%\^&?]rnrorprqrrrsrvrtrwrxruryrzr{r|r}Nr~rrrrrsA DhG8$II LLE$   ' $  &(;(;\ J " g))4 >  L56=oo G !1!1 2  '// 1!'"2"2 3 ')9)9 : g)) * * 38 G     :t"'uu:6v]]w; x I +,4 6 !6 * !6#3#3 4 ( + $d !< =  $ (+ 6 TNKf PDVZZ P 7 F . ? K!8 9 ; ' T]] + FO  K / K ( T]] # ;  *G,<,< = FO  m}Frrc NeZdZdZdZdgZgdZgZejZ dde fe ddde jfe d dde fe d ddej fe d dde j"fd ej&fd ej(fdej(fdefdefdefg iZdZy)rz@ Lexer for Icon ucode files. .. versionadded:: 2.4 ucode)z*.uz*.u1z*.u2rxz(#.*\n)) condeclendr&globalimplr0labrlocalrecorduidunionsversionr9r:)colmfilenlinesynt)Yasgnbangbscancatccasechfailcoactr\complcoretr#rgdiffdivdupefaileinitr&eqvereterrorescanesuspfieldgotoinitintinterinvokekeywdlconcatlexeqlexgelexgtlexlelexltlexnelimitllistlsuspmarkmark0minusmodmultnegneqvnonnullnoopnullnumbernumeqnumgenumgtnumlenumltnumnepfailpluspnullrpowerpretrpsusppush1pushn1randomrasgnrcvrcvbkr refreshrswapsdupsectsizesndsndbkstrsubscswaptabmattallytobytraceunmarkvaluevar)rBr"endcaseendeveryendif endifelse endrepeat endsuspendenduntilendwhiler*r,ifelser2r4r7r8z\d+(\s*|\.$|$)z[+-]?\d*\.\d+(E[-+]?\d+)?z[+-]?\d+\.\d*(E[-+]?\d+)?z"(<>|=>|[()|:;,.'`]|[{}]|[%^]|[&?])z\s+\bz[\w-]+ctd}d|vr|dz }d|vr|dz }d|vr|dz }d|vr d|vr|dz }d |vr d |vr|d z }|S) z}endsuspend and endrepeat are unique to this language, and \self, /self doesn't seem to get used anywhere else either.rrg?rz:=g{Gz? procedurer&z\selfz/selfg?r)textresults r analyse_textzUcodeLexer.analyse_textsq 4  cMF $  cMF 4< dNF $ 5D= dNF t D 0 cMF rN)rrrrrrrrrrrr rr rr rrrrrrr rr rrrrr2s DiG'II LLE   ! U,]] 1U,  :).e;=< = "> % )]]  / )6<< 8 )6<< 8 2K @ t   CB DFLrr)rrpygments.lexerrrrrrrpygments.tokenr r r r r rrr__all__rrrrrrrsW LL 5O*OdI IXiir