K i}dZddlZddlmZmZmZmZmZmZddl m Z m Z m Z m Z mZmZmZmZmZddlmZmZddlmZgdZGdd eZGd d eZGd d eZGddeZGddeZGddeZGddeZGddeZ GddeZ!GddeZ"GddeZ#GddeZ$y) z pygments.lexers.c_like ~~~~~~~~~~~~~~~~~~~~~~ Lexers for other C-like languages. :copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. N) RegexLexerincludebygroupsinheritwordsdefault) TextCommentOperatorKeywordNameStringNumber Punctuation Whitespace)CLexerCppLexer) _mql_builtins) PikeLexer NesCLexer ClayLexerECLexer ValaLexer CudaLexer SwigLexerMqlLexer ArduinoLexer CharmciLexer OmgIdlLexer PromelaLexerceZdZdZdZdgZddgZdgZdZe dd e fd e jfd e e e d fdefegdej"dfde dfgdZy)rz@ For `Pike `_ source code. Pikepikez*.pikez*.pmodz text/x-pike2.0)=catchnewprivate protectedpublicgaugethrowthrowsclass interface implementabstractextendsfromthissuperconstantfinalstaticimportuseexterninlineprotobreakcontinueifelseforwhiledoswitchcaseasinversionreturntruefalsenull __VERSION__ __MAJOR__ __MINOR__ __BUILD____REAL_VERSION____REAL_MAJOR____REAL_MINOR____REAL_BUILD____DATE____TIME____FILE____DIR____LINE____AUTO_BIGNUM____NT____PIKE__ __amigaos___Pragma static_assertdefinedsscanf\bsuffixz(bool|int|long|float|short|double|char|string|object|void|mapping|array|multiset|program|function|lambda|mixed|[a-z_][a-z0-9_]*_t)\b (class)(\s+) classnamez[~!%^&*+=|?:<>/@-] [a-zA-Z_]\w*#popz\s*(?=>)) statementsrfN)__name__ __module__ __qualname____doc__namealiases filenames mimetypes version_addedrr Typerrr rr Classtokens\/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/pygments/lexers/c_like.pyrrs DhG8$IIM PY^ _ &\\ hw ;[ I "H - ' ,djj& 1 *f - -FrwrcteZdZdZdZdgZdgZdgZdZde dd e fe d d e jfe giZ y ) rzd For `nesC `_ source code with preprocessor directives. nesCnescz*.ncztext/x-nescsrcr$ri)r0rFasyncatomiccallcommand component components configurationeventr1genericimplementationincludesr.moduler&noracepostprovidessignaltaskusesrbrc) nx_structnx_union nx_int8_t nx_int16_t nx_int32_t nx_int64_t nx_uint8_t nx_uint16_t nx_uint32_t nx_uint64_tN)rjrkrlrmrnrorprqrrrr rsrrurvrwrxrrBs~ DhGI!"IM  >GL M    #+02\\    FrwrcNeZdZdZdZdgZdgZdgZdZdZ de fd e jfd e jfd efd efd efdej$fdej&fdej*fdefdedfdedfg dej.fdefgdefgdedfedgdedfededgdZy)rz For Clay source. Clayz*.clayclayz text/x-clayzhttp://claylabs.com/clayr$\s+z//.*?$/(\\\n)?[*](.|\n)*?[*](\\\n)?/aK\b(public|private|import|as|record|variant|instance|define|overload|default|external|alias|rvalue|ref|forward|inline|noinline|forceinline|enum|var|and|or|not|if|else|goto|return|while|switch|case|break|continue|for|in|true|false|try|catch|throw|finally|onerror|staticassert|eval|when|newtype|__FILE__|__LINE__|__COLUMN__|__ARG__)\bz[~!%^&*+=|:<>/-]z[#(){}\[\],;.]z0x[0-9a-fA-F]+[LlUu]*z \d+[LlUu]*z\b(true|false)\bz(?i)[a-z_?][\w?]*z"""tdqs"dqsz(?i)\\(x[0-9a-f]{2}|.)z[^\\"]+\nrhstringsnl)rootrrrrN)rjrkrlrmrnrprorqurlrrrr Single Multiliner r rrHexIntegerr BuiltinrEscaperrurvrwrxrr^s! D IhGI $CMZ  ' .0A0A B !( +  , %vzz 2 FNN + $,, / !4 ( VV $ 65 !' ,' 6   FO 66 " I  VV $ I  DM C&FrwrceZdZdZdZdgZddgZddgZdZd Z d e d d e fe dd e jfde e edfdej fegiZy)rz: For eC source code with preprocessor directives. eCecz*.ecz*.ehz text/x-echdrz text/x-ecsrczhttps://ec-lang.orgz1.5ri)+virtualr-r'r)propertyr8deleter&new0renewrenew0definegetsetremote dllexport dllimportstdcallsubclass__on_register_module namespaceusing typed_object any_objectincrefregisterwatch stopwatching firewatchers watchableclass_designer class_fixedclass_no_expansionissetclass_default_propertyproperty_category class_dataclass_property thisclassdbtabledbindex database_opendbfieldrbrc)uintuint16uint32uint64boolbyteunicharint64rerfz(null|value|this)\bN)rjrkrlrmrnrorprqrrrrr rsrrr rrrurvrwrxrrs DfG I0I CM   ,5: ;=D E(057 \\ hw ;[ I #T\\ 2 ! FrwrceZdZdZdZddgZddgZdgZdZd Z d e jd fd e fd e fde fde jfde jfgdedfdej"fdefdej&fdej&fdej(fdej*fdej,fdefdeeej6efdeeej6fdefedd efed!d ej<fd"eej>e d#fd$eej<e d%fd&eeej@fed'd ejBfd(ejDfd)efge#d*e$d+ge#d*e#d,d-efd.ed/fgd0ed/fd1ejJfd2efdefd3efgd4e jd5fd6e jd/fd7e jd/fd8e fgd)ejLd/fgd9ej>d/fgd:Z'y;)/-]z2(\[)(Compact|Immutable|(?:Boolean|Simple)Type)(\])z$(\[)(CCode|(?:Integer|Floating)Type)z [()\[\],.])!rFbaser=rEr% constructr>rrrCr@enumfinallyrAforeachrr?rGislockr&outparamsrIrsizeofrDr3r+trytypeofrByieldrbrc)r0constdelegatedynamicensuresr:r;internaloverrideownedr'r(r)refrequiresrr7r,unownedvarrvolatileweakyieldsz(namespace|using)(\s+)rz)(class|errordomain|interface|struct)(\s+)r-(\.)([a-zA-Z_]\w*))voidrchardoublefloatintint8int16int32rlongshortsize_tssize_trtime_tucharruint8rrrulongrushortz(true|false|null)\brg whitespace statementriz[{}];rhrz/\\([\\abfnrtv"\']|x[a-fA-F0-9]{2,4}|[0-7]{1,3})z [^\\"\n]+z\\z^\s*#if.*?(?>; ? A5 k4>> 2 4 K ( , 5: ;   @IN O   " '1B1BJ(O   9 g)): 6 A " h / 1.7< = \\   $T\\ 2 d #Y- ^ L ! K  L ! L ! [ ! +v &  66 " ? O 6 " f  FO  $W__g > $goov > & @ w   djj& 1   8 cTFrwrcjeZdZdZdZddgZddgZdgZdZd Z hd Z hd Z hd Z hd Z hdZddhZddZy)ru$ For NVIDIA CUDA™ source. CUDAz*.cuz*.cuhcudacuz text/x-cudaz4https://developer.nvidia.com/category/zone/cuda-zonez1.6>__host__ __device__ __global__ __noinline____forceinline__>r  __shared__ __constant__ __restrict__>+dim3int1int2int3int4char1char2char3char4long1long2long3long4uint1uint2uint3uint4float1float2float3float4short1short2short3short4uchar1uchar2uchar3uchar4ulong1ulong2ulong3ulong4double1double2ushort1ushort2ushort3ushort4 longlong1 longlong2 ulonglong1 ulonglong2>gridDimblockDimblockIdxwarpSize threadIdx> __syncthreads __threadfence__syncthreads_or__syncthreads_and__syncthreads_count__threadfence_block__threadfence_systemz<<>>c#Ktj|||D]\}}}|tur||jvrtj }n||j vrtj }n{||jvrtj}n\||jvrtj}n=||jvrtj}n||jvrtj}|||fywN)rget_tokens_unprocessedr variable_qualifiersr rs vector_types variablesrexecution_confsPseudofunction_qualifiersReserved functionsFunctionselftextstackindextokenvalues rxr`z CudaLexer.get_tokens_unprocessed2s#)#@#@tU#S & E5%}D444#LLEd///#LLEdnn, LLEd222#NNEd666#,,Ednn, MME% % &sC*C,N)r)rjrkrlrmrnrprorqrrrrfrarbrcrhrdr`rvrwrxrrsh D!ItnGI @CM>+2LMI%IenO&rwrceZdZdZdZdgZddgZdgZdZdZ d e fe gd e jfd e fd e jfe gd Zhd ZdZy)rz9 For `SWIG `_ source code. SWIGswigz*.swgz*.iz text/swigr$g{Gz?z \$\**\&?\w+z(%[a-z_][a-z0-9_]*)z##*[a-zA-Z_]\w*)rri>R%arg%bang%init%warn%apply%begin%clear%types%csenum%define%delete%enddef%extend%header%ignore%import%inline%insert%kwargs%module%nspace%pragma%rename%shadow%sizeof%catches%csconst%default%defined%feature%include%luacode%mutable%typemap%varargs %callback %constant %copyctor %director %fragment %implicit %javaenum %perlcode %template %attribute %delobject %exception %fragments %immutable %javaconst %newobject %pythonabc %refobject %typecheck %descriptor %ignorewarn %naturalvar %pythoncode %shared_ptr %warnfilter %defaultctor %defaultdtor %ifcplusplus %unrefobject %csconstvalue %exceptionvar %implicitconv %pythonappend %trackobjects%javaexception%pythondynamic%pythonprepend%exceptionclass%javaconstvalue%pythoncallback%pythonmaybecall%nestedworkaround%pythonnondynamic%csmethodmodifiers%csnothrowexception%javamethodmodifiers%extend_smart_pointercd}tjd|tj}|D]}|tjvrd}|Sd}|S)Nrz^\s*(%[a-z_][a-z0-9_]*)g\(\?gQ?)refindallMrswig_directives)rlrvmatchesms rx analyse_textzSwigLexer.analyse_textvsZ **7rttD AI---     rwN)rjrkrlrmrnrorprqrrpriorityr rrir rrurrrvrwrxrrDs DhG% I IMH T "  $T]] 3 T "  1  F$O* rwrc \eZdZdZdZgdZgdZdgZdZde e jd e fe e jd e jfe e jd ej"fe e j$d ej&fe e j(d d ej&fegiZy ) rzh For `MQL4 `_ and `MQL5 `_ source code. MQL)mqlmq4mq5mql4mql5)z*.mq4z*.mq5z*.mqhz text/x-mqlr$rirbrcz(clr)?prefixrdN)rjrkrlrmrnrorprqrrrrkeywordsr c_typesrstypesr ri constantsConstantcolorsrrurvrwrxrrs D3G+IIM  =))% 8' B =(( 7 F =&&u 5t}} E =**5 94== I ='' G ]]    FrwrcZeZdZdZdZdgZdgZdgZdZddhZ hd Z hd Z hd Z hd Z dd Zy)ru For `Arduino(tm) `_ source. This is an extension of the CppLexer, as the Arduino® Language is a superset of C++ Arduinoarduinoz*.inoztext/x-arduinoz2.1setuploop>orandnotxor>Y unsigned int unsigned char unsigned longLOWrHIGHautorrrrrrJrwordINPUT_Boolarrayr-rrKrrunionOUTPUTrrrr:friendr;int8_tr)signedrr7rstructPROGMEMbooleancomplexint16_tint32_tint64_tr'typedefuint8_trEXTERNALINTERNAL_Complexexplicitoperatorruint16_tuint32_tuint64_tunsignedrr( _Imaginary atomic_int const_cast INTERNAL1V1 LED_BUILTIN SYSEX_START atomic_bool atomic_char atomic_long atomic_uint static_cast INPUT_PULLUP INTERNAL2V56 SET_PIN_MODE SYSTEM_RESET atomic_llong atomic_schar atomic_short atomic_uchar atomic_ulong dynamic_cast REPORT_ANALOG atomic_ullong atomic_ushortANALOG_MESSAGEFIRMATA_STRINGREPORT_DIGITALDIGITAL_MESSAGEreinterpret_cast>WSDGSMSPITFTabsbitcosendrmapmaxminpowputrunsintanFileGPRSRSSISSIDTaskWiFiWirebeepfillfindhomelinemoveopenpeekreadrectseeksizesqrtstepstoprltoneturnAudioBSSIDMouseServobeginblinkclearclickclosedelayflushimageisPINmkdirpointpressprintreadyrmdirwidthwriterBridgeClientEEPROMFileIOGSMPINIRreadPImageSerialServerStreamattachbitSetbuffercircleconfigcursordetachendSMSexistsgetKeyheightlistenmicrosmillisnoFillnoTonerandomremovesetDNSstrokeConsoleEsploraFirmataGSMBandGSM_SMSMailboxProcessStepperUSBHostWiFiUDPbeginSDbitReadconnectdisplaydrawBMPgetBandgetIMEIisAlphaisAsciiisDigitisGraphisPunctisSpaceisValidlocalIPlowBytenoBlinkpinModepointToprepareprintlnprocesspulseInreadRedreleaserunningsetBandsetModeshiftInEthernetGSMModemKeyboardattachedbeginSMSbeginTFTbitClearbitWritecheckPINcheckPUKcheckRegendWritehangCallhighByteknobReadmaintainnoBuffernoCursornoStrokeoverflowparseIntplayFilepositionreadBlueremoteIPsetSpeedshiftOutshutdowntransferupdateIRwriteRGBwriteRed GSMClient GSMServer IPAddress Scheduler YunClient YunServer available changePIN connected constrain endPacket exitValue findUntil gatewayIP getButton getOemKey getResult getSocket isControl isPressed loadImage noDisplay onReceive onRequest pauseMode readBytes readGreen sendSysex setCursor startLoop switchPIN tuneWrite voiceCall writeBlue writeJSON EsploraTFT FileSystem GSMScanner HttpClient RobotMotor WiFiClient WiFiServer analogRead answerCall attachGPRS autoscroll background beginWrite createChar debugPrint disconnect getPINUsed getXChange getYChange interrupts keyPressed macAddress motorsStop mouseMoved parseFloat playMelody randomSeed readButton readSlider readString releaseAll remotePort sendAnalog sendString setPINUsed setTimeout subnetMask tempoWrite writeGreen EthernetUDP analogWrite beginPacket clearScreen compassRead digitalRead drawCompass isDirectory isListening isLowerCase isPrintable isUpperCase keyReleased leftToRight motorsWrite parsePacket readMessage requestFrom rightToLeft serialEvent setBitOrder setDataMode setTextSize GSMVoiceCall RobotControl addParameter beginSpeaker blinkVersion cityNameRead digitalWrite displayLogos getModifiers isActionDone isWhitespace keyboardRead mouseDragged mousePressed noAutoscroll noInterrupts openNextFile parseCommand printVersion processInput readNetworks remoteNumber scanNetworks userNameRead waitContinue writeMessage LiquidCrystal cityNameWrite mouseReleased readJoystickX readJoystickY robotNameRead userNameWriteEthernetClientEthernetServerSoftwareSerialencryptionTypeisAlphaNumericreadBytesUntilreadMicrophonerobotNameWriteMouseControlleranalogReferenceattachInterruptcountryNameReaddetachInterruptendTransmissionreadLightSensorreadStringUntilreadTemperaturerewindDirectoryrunShellCommandsetClockDividercountryNameWritelineFollowConfigmessageAvailablesendDigitalPortsbeginTransmissiondelayMicrosecondsgetAsynchronouslygetCurrentCarriergetSignalStrengthlistenOnLocalhostreadAccelerometerrunAsynchronouslyscrollDisplayLeftwriteMicrosecondsKeyboardControllergetVoiceCallStatusisHexadecimalDigitreadJoystickButtonreadJoystickSwitchscrollDisplayRightsetFirmwareVersionnoListenOnLocalhostsendDigitalPortPairanalogReadResolutionprintFirmwareVersionanalogWriteResolutionretrieveCallingNumberrunShellCommandAsynchronously>asmr3rtypeidalignofmutabledecltypenoexceptrestricttemplatetypename constexprr thread_localr_c#Ktj|||D]\}}}||jvr|tj|f+||j vr |t |fE||jvr|tj|fi||jvr |t|f||jvr|tj|f|||fywr_) rr` structurer r operatorsr rcr rgsuppress_highlightrhrirjs rxr`z#ArduinoLexer.get_tokens_unprocessed s#+#B#B4u#U * E5%&T\\500$..(Xu,,$..(W--u44$111T5(($..(T]]E11UE)) *sC C Nrq)rjrkrlrmrnrorprqrrrrrcrhrr`rvrwrxrrsX DkG I!"IM&!I,I4I(>IB5 *rwrcleZdZdZdZdgZdgZdZgZdde e e dfe d e fe d e fe giZy ) rzO For `Charm++ `_ interface files (.ci). Charmcicharmciz*.ciz2.4rz (module)(\s+)rf) mainmodule maincharecharergroup nodegroupmessage conditional)entry aggregatethreadedsync exclusivenokeepnotrace immediate expeditedr;localpythonaccel readwrite writeonly accelblock memcriticalpackedvarsizeinitprocinitnodeinitcall stacksize createhere createhomereductiontargetigetnocopyr~ migratablereadonlyN)rjrkrlrmrnrorprrrqrr r rrrurvrwrxrrs DkGIMI  x6 D ;<=D F CD FM  N   FrwrcxeZdZdZdZdZdgZddgZgZdZ dZ e d d d e fd e ejej dfde ejej"ej$ej"fde ejej"ej$ej"fde ejej"fde j&fde j&fde j(fde j*fde j,fdefe defe efdefgeddedfeddefded fgded!feded gd"e zej8d#fgedd$efd%ej:fed&d'ed fgede d(d d ej>fe d)d d ej@fe d*d d+ e ee!ejDfe d,d d efd-e ee!ejDd.fd/e ejFe!ejFfd0e ej:e!efd1efeded&g d2Z$y3)4rzJ Lexer for Object Management Group Interface Definition Language. z!OMG Interface Definition Languagez'https://www.omg.org/spec/IDL/About-IDL/zomg-idlz*.idlz*.pidlz2.9z ((::)?\w+)+)rJrKz(?i)rbrz ([Ll]?)(")rz([Ll]?)(\')(\\[^\']+)(\')z([Ll]?)(\')(\\\')(\')z([Ll]?)(\'.\')z[+-]?\d+(\.\d*)?[Ee][+-]?\d+z)[+-]?(\d+\.\d*)|(\d*\.\d+)([Ee][+-]?\d+)?z(?i)[+-]?0x[0-9a-f]+z [+-]?[1-9]\d*z [+-]?0[0-7]*z[\+\-\*\/%^&\|~])z<>z [{};:,<>\[\]]rz\(rvalues=z\)rhannotation_params@annotation_params_maybez[{,]z\w+annotation_applz\})rrrGrinoutr)ranynativebitfieldr rrwcharoctetrrrr rrrrrrrrfixedsequencerwstringr/) z @annotationrrbitsetr. exception valuetype eventtyperz (\s+)(\w+))&r0alias attributerE connectorconsumescontextcustomremitsfactoryfinder getraisesrAr8manages mirrorportmultipleObjectoneway primarykeyr'portporttyperr) publishesraisesr setraisessupportsrD truncatabler|r typeprefixr ValueBasez(?i)(enum|bitmask)(\s+)(\w+)rz(?i)(module)(\s+)(\w+)z (\w+)(\s*)(=)z[\(\)])rrrrrrN)%rjrkrlrmrnrrorprqrr scoped_namerrrrAffixDoublerrrrrrr r rrrrrr rrsrrtrrurvrwrxrr9s /D 3CkG(#IIM K$WU CV L HV\\6==A8 L )v{{FMM6;;O Q %v{{FMM6;;O Q v{{ C D ,fll ; 96<< H $fjj 1 v~~ . fjj ) ( + < ( + $  { +! & L ! K ) H  ;  K (  K!4 5 L ! FO$ K 1J K  L ! k " T]] # % & K (   L ! e-/6.A.A C e - /6ll  <m57?w TXT^T^6_ ae-/6 7-*djj96 C &**JG I x z8L M  $ H  % &C" SLFrwrceZdZdZdZdgZgdZdgZdZdZ de fd e fd e e e jfeged d ej$fgedd efedd e j&fedd efedd e j(fedd e j&fde j*fedd ej,fedd efedd ej,fdefg dZy)r z2 For the Promela language used with SPIN. Promelapromela)z*.pmlz*.promz*.prmz *.promelaz*.prz*.pmztext/x-promelaz(https://spinroot.com/spin/whatispin.htmlz2.18z(\[\]|<>|/\\|\\/)|(U|W|V)\brr)r,rrpidrrr rbrc) r}r=d_steprCodrArGgotor?fiunless)assert get_priorityprintfprintm set_priority)c_codec_declc_exprc_statec_track)__last_nr_pr_pid _priorityr@np_STDIN)emptyenabledevalfulllennemptynfullpc_valuezrun\b)activechan D_proctypehiddeninitrmtypeneverrproctypeshowtracerxrxs)rprovided)r;ltlselectzskip\b)rirrN)rjrkrlrmrnrorprqrrrr rrr rrrr rsrirWordrrurvrwrxr r s DkGII!"I 4CM,X 6 ;  "HXt~~$F G   J\\  &.35  N]]  D  !&(\\  $)+]]  x}} % '056  " (057  +38:   " W, ;Frwr )%rmrpygments.lexerrrrrrrpygments.tokenr r r r r rrrrpygments.lexers.c_cpprrpygments.lexersr__all__rrrrrrrrrrrr rvrwrxrs   $$$3) * %%P81 1hfB_ _D,&,&^>>Bx0|*8|*~8:Z&ZzL6Lrw