a
    €˜ëjv~  ã                   @   s@  d Z ddlZddlmZmZmZmZmZmZ ddl	m
Z
mZmZmZmZmZmZmZmZ ddlmZmZ ddlmZ g d¢ZG dd	„ d	eƒZG d
d„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZ G dd„ deƒZ!G dd„ deƒZ"G dd„ deƒZ#G dd„ deƒZ$dS ) zÖ
    pygments.lexers.c_like
    ~~~~~~~~~~~~~~~~~~~~~~

    Lexers for other C-like languages.

    :copyright: Copyright 2006-present by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
é    N)Ú
RegexLexerÚincludeÚbygroupsÚinheritÚwordsÚdefault)	ÚTextÚCommentÚOperatorÚKeywordÚNameÚStringÚNumberÚPunctuationÚ
Whitespace)ÚCLexerÚCppLexer)Ú_mql_builtins)Ú	PikeLexerÚ	NesCLexerÚ	ClayLexerÚECLexerÚ	ValaLexerÚ	CudaLexerÚ	SwigLexerÚMqlLexerÚArduinoLexerÚCharmciLexerÚOmgIdlLexerÚPromelaLexerc                   @   st   e Zd ZdZdZdgZddgZdgZdZe	dd	d
�e
fde
jfdee
eƒdfdefegdejdfdedfgdœZdS )r   z@
    For `Pike <http://pike.lysator.liu.se/>`_ source code.
    ZPikeZpikez*.pikez*.pmodztext/x-pikeú2.0)=ÚcatchÚnewÚprivateÚ	protectedÚpublicZgaugeÚthrowÚthrowsÚclassÚ	interfaceZ	implementÚabstractÚextendsÚfromÚthisÚsuperZconstantÚfinalÚstaticÚimportZuseÚexternÚinlineÚprotoÚbreakÚcontinueÚifÚelseÚforÚwhileÚdoÚswitchÚcaseÚasÚinÚversionÚreturnÚtrueÚfalseÚnullZ__VERSION__Z	__MAJOR__Z	__MINOR__Z	__BUILD__Z__REAL_VERSION__Z__REAL_MAJOR__Z__REAL_MINOR__Z__REAL_BUILD__Z__DATE__Z__TIME__Ú__FILE__Z__DIR__Ú__LINE__Z__AUTO_BIGNUM__Z__NT__Z__PIKE__Z__amigaos__Z_PragmaÚstatic_assertZdefinedZsscanfú\b©Úsuffixz„(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*(?=>))Ú
statementsrL   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚnameÚaliasesÚ	filenamesÚ	mimetypesÚversion_addedr   r   ÚTyper   r   r
   r   r   ÚClassÚtokens© r\   r\   úU/mnt/bigstor/www/usecases/.venv/lib/python3.9/site-packages/pygments/lexers/c_like.pyr      s,   
öõýí
ýêr   c                   @   sR   e Zd ZdZdZdgZdgZdgZdZde	dd	d
�e
fe	dd	d
�e
jfegiZdS )r   zd
    For `nesC <https://github.com/tinyos/nesc>`_ source code with preprocessor
    directives.
    ZnesCZnescz*.ncztext/x-nescsrcr    rO   )r*   r>   ÚasyncÚatomicÚcallÚcommandÚ	componentÚ
componentsÚconfigurationÚeventr+   ZgenericÚimplementationZincludesr)   Úmoduler"   ZnoraceÚpostÚprovidesÚsignalZtaskÚusesrH   rI   )
Z	nx_structZnx_unionZ	nx_int8_tZ
nx_int16_tZ
nx_int32_tZ
nx_int64_tZ
nx_uint8_tZnx_uint16_tZnx_uint32_tZnx_uint64_tN)rP   rQ   rR   rS   rT   rU   rV   rW   rX   r   r   rY   r   r[   r\   r\   r\   r]   r   B   s(   üûþýõÿr   c                   @   sÔ   e Zd ZdZdZdgZdgZdgZdZdZ	de
fd	ejfd
ejfedddd�efdefdefdejfdejfdejfdefdedfdedfgdejfdefgdefgdedfedƒgdedfedƒedƒgdœZdS ) r   z
    For Clay source.
    ZClayz*.clayZclayztext/x-clayzhttp://claylabs.com/clayr    ú\s+z//.*?$ú/(\\\n)?[*][\s\S]*?[*](\\\n)?/)1r%   r#   r1   r>   ÚrecordÚvariantÚinstanceÚdefineÚoverloadr   ZexternalÚaliasZrvalueÚrefZforwardr3   ZnoinlineZforceinlineÚenumÚvarÚandÚorÚnotr7   r8   ÚgotorA   r:   r<   r=   r5   r6   r9   r?   rB   rC   Útryr!   r&   ÚfinallyÚonerrorZstaticassertÚevalÚwhenZnewtyperE   rF   Z
__COLUMN__Z__ARG__rH   ©ÚprefixrJ   z[~!%^&*+=|:<>/-]z[#(){}\[\],;.]z0x[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[^\\"]+ú\nrN   ÚstringsÚnl)Úrootr†   r‡   r„   r‚   N)rP   rQ   rR   rS   rT   rV   rU   rW   ÚurlrX   r   r	   ÚSingleÚ	Multiliner   r   r
   r   r   ÚHexÚIntegerr   ÚBuiltinr   ÚEscaper   r[   r\   r\   r\   r]   r   ^   sJ   õõéþÿþýÛr   c                   @   sp   e Zd ZdZdZdgZddgZddgZdZd	Z	d
e
ddd�efe
ddd�ejfdeeeƒdfdejfegiZdS )r   z:
    For eC source code with preprocessor directives.
    ZeCZecz*.ecz*.ehztext/x-echdrztext/x-ecsrczhttps://ec-lang.orgz1.5rO   )+Úvirtualr(   r#   r%   Úpropertyr1   Údeleter"   Znew0ZrenewZrenew0rq   ÚgetÚsetÚremoteZ	dllexportZ	dllimportZstdcallÚsubclassZ__on_register_moduleÚ	namespaceÚusingZtyped_objectZ
any_objectZincrefÚregisterZwatchZstopwatchingZfirewatchersZ	watchableZclass_designerZclass_fixedZclass_no_expansionZissetZclass_default_propertyZproperty_categoryZ
class_dataZclass_propertyZ	thisclassZdbtableZdbindexZdatabase_openZdbfieldrH   rI   )ÚuintÚuint16Úuint32Úuint64ÚboolÚbyteÚunicharÚint64rK   rL   z(null|value|this)\bN)rP   rQ   rR   rS   rT   rU   rV   rW   r‰   rX   r   r   rY   r   r   r   rŽ   r   r[   r\   r\   r\   r]   r   –   s.   	÷	÷
ÿþðÿr   c                   @   sÎ  e Zd ZdZdZddgZddgZdgZdZd	Z	d
e
jdfde
jfdefdefdefde
jfde
jfgdefdedfdejfdejfdejfdejfdejfdejfdefdeeejeƒfdeeejƒfdefedd d!�efed"d d!�ejfd#eejeƒd$fd%eejeƒd&fd'eeej ƒfed(d d!�ej!fd)ej"fd*efge#d+ƒe$d,ƒge#d+ƒe#d-ƒd.efd/ed0fgd1ed0fd2ej%fd3efdefd4efgd5e
jd6fd7e
jd0fd8e
jd0fd9e
fgd*ej&d0fgd:ejd0fgd;œZ'd<S )=r   z<
    For Vala source code with preprocessor directives.
    ZValaZvalaZvapiz*.valaz*.vapiztext/x-valazhttps://vala.devz1.1z^\s*#if\s+0Úif0z#^\s*#(?:if|elif|else|endif)\b[^\n]*r…   rl   z\\\nz//(\n|[\s\S]*?[^\\]\n)rm   z(?s)""".*?"""z[L@]?"Ústringz4L?'(\\.|\\[0-7]{1,3}|\\x[a-fA-F0-9]{1,2}|[^\\\'\n])'z%(\d+\.\d*|\.\d+|\d+)[eE][+-]?\d+[lL]?z(\d+\.\d*|\.\d+|\d+[fF])[fF]?z0x[0-9a-fA-F]+[Ll]?z0[0-7]+[Ll]?z\d+[Ll]?z[~!%^&*+=|?:<>/-]z2(\[)(Compact|Immutable|(?:Boolean|Simple)Type)(\])z$(\[)(CCode|(?:Integer|Floating)Type)z
[()\[\],.])!r>   Úbaser5   r=   r!   Z	constructr6   r   r’   r;   r8   ru   r|   r9   Zforeachr“   r7   r?   ÚisÚlockr"   ÚoutÚparamsrA   r”   Úsizeofr<   r-   r&   r{   Ztypeofr:   ÚyieldrH   rI   )r*   ÚconstZdelegateZdynamicZensuresr2   r3   ZinternalÚoverrideZownedr#   r$   r%   rt   Úrequiresrj   r0   r'   Zunownedrv   r�   ÚvolatileZweakZyieldsz(namespace|using)(\s+)r—   z)(class|errordomain|interface|struct)(\s+)r(   ú(\.)([a-zA-Z_]\w*))Úvoidrž   ÚcharÚdoubleÚfloatÚintÚint8Úint16Úint32r¡   ÚlongÚshortZsize_tZssize_tr£   Ztime_tZucharrš   Úuint8r›   rœ   r�   Zulongr    Zushortz(true|false|null)\brM   Ú
whitespaceÚ	statementrO   z[{}]ú;rN   rƒ   z/\\([\\abfnrtv"\']|x[a-fA-F0-9]{2,4}|[0-7]{1,3})z	[^\\"\n]+z\\z^\s*#if.*?(?<!\\)\nú#pushz^\s*#el(?:se|if).*\nz^\s*#endif.*?(?<!\\)\nz.*?\nz[a-zA-Z_][\w.]*)r»   rO   rˆ   r¼   r£   r¢   r(   r—   N)(rP   rQ   rR   rS   rT   rU   rV   rW   r‰   rX   r	   ÚPreprocr   r   rŠ   r‹   r   ÚCharr   ÚFloatrŒ   ÚOctr�   r
   r   r   r   Ú	Decoratorr   r   ÚDeclarationÚ	NamespaceÚ	AttributerY   rŽ   r   r   r�   rZ   r[   r\   r\   r\   r]   r   ·   s¨   
ù
ÿÿ
ÿûúüûÿÿ
ÿüûÔ/þüû


ü
ÿ
ÿ®r   c                   @   sl   e Zd ZdZdZddgZddgZdgZdZd	Z	h d
£Z
h d£Zh d£Zh d£Zh d£ZddhZddd„ZdS )r   u$   
    For NVIDIA CUDAâ„¢ source.
    ZCUDAz*.cuz*.cuhZcudaZcuztext/x-cudaz4https://developer.nvidia.com/category/zone/cuda-zonez1.6>   Z
__global__Ú
__device__Z__noinline__Z__forceinline__Z__host__>   Z__constant__rÇ   Z
__shared__Z__restrict__>+   Zlong3Zuchar1Zulong4Zshort1Zdim3Zlong4Zushort1Z	longlong1Zint2Zint1Zchar4Zchar3Zfloat1Zushort3Zushort4Zint4Zfloat2Zfloat3Zlong1Zuchar4Zulong1Zshort2Z	longlong2Zfloat4Zushort2Zuint1Zuint4Zint3Zuchar3Zshort3Zshort4Zuchar2Z
ulonglong1Zlong2Zchar2Zchar1Zuint3Zulong3Zulong2Zdouble2Zdouble1Zuint2Z
ulonglong2>   ZgridDimZ	threadIdxZwarpSizeZblockDimZblockIdx>   Z__threadfence_blockZ__threadfence_systemZ__syncthreads_countZ__syncthreads_andZ__syncthreads_orZ__threadfenceZ__syncthreadsz<<<z>>>©rˆ   c                 c   sœ   t  | ||¡D ]ˆ\}}}|tu rŠ|| jv r2tj}nX|| jv rDtj}nF|| jv rVtj}n4|| j	v rhtj
}n"|| jv rztj}n|| jv rŠtj}|||fV  qd S ©N)r   Úget_tokens_unprocessedr   Úvariable_qualifiersr   rY   Úvector_typesÚ	variablesrŽ   Úexecution_confsZPseudoÚfunction_qualifiersÚReservedÚ	functionsÚFunction©ÚselfÚtextÚstackÚindexÚtokenÚvaluer\   r\   r]   rÊ   7  s    





z CudaLexer.get_tokens_unprocessedN)rÈ   )rP   rQ   rR   rS   rT   rV   rU   rW   r‰   rX   rÏ   rË   rÌ   rÍ   rÑ   rÎ   rÊ   r\   r\   r\   r]   r     s   r   c                   @   sj   e Zd ZdZdZdgZddgZdgZdZdZ	d	e
fegd
e
jfd	e
fdejfegdœZh d£Zdd„ ZdS )r   z9
    For `SWIG <http://www.swig.org/>`_ source code.
    ZSWIGZswigz*.swgz*.iz	text/swigr    g{®Gáz¤?z\$\**\&?\w+z(%[a-z_][a-z0-9_]*)z##*[a-zA-Z_]\w*)rˆ   rO   >R   z	%copyctorz%javaconstvaluez%extend_smart_pointerz%unrefobjectz%argz
%exceptionz%csconstz%initz	%constantz%javamethodmodifiersz%trackobjectsz%pythonprependz%pythondynamicz%applyz%sizeofz%inlinez
%pythonabcz
%newobjectz%pythoncallbackz%definez%nspacez
%immutablez	%perlcodez%catchesz%modulez%implicitconvz%warnz%defaultdtorz%renamez%pragmaz%ifcplusplusz%kwargsz%shadowz%csmethodmodifiersz
%fragmentsz
%refobjectz%csconstvaluez
%attributez	%templatez%beginz%typemapz%includez%shared_ptrz	%implicitz%javaexceptionz%enddefz%nestedworkaroundz%csnothrowexceptionz	%callbackz
%javaconstz%exceptionclassz%csenumz%mutablez%pythonmaybecallz%featurez
%typecheckz%descriptorz%exceptionvarz%ignorewarnz%defaultz%typesz%headerz%definedz%defaultctorz%pythoncodez%luacodez	%directorz%bangz%importz	%javaenumz	%fragmentz%insertz%ignorez%deletez%extendz%warnfilterz%clearz%pythonnondynamicz
%delobjectz%pythonappendz%varargsz%naturalvarc                 C   s:   d}t  d| t j¡}|D ]}|tjv r0d} q6qd}q|S )Nr   z^\s*(%[a-z_][a-z0-9_]*)g\�Âõ(\ï?g…ëQ¸í?)ÚreÚfindallÚMr   Úswig_directives)rÕ   ÚrvÚmatchesÚmr\   r\   r]   Úanalyse_text{  s    
zSwigLexer.analyse_textN)rP   rQ   rR   rS   rT   rU   rV   rW   rX   Úpriorityr   r   rÒ   r	   r¿   r[   rÝ   rá   r\   r\   r\   r]   r   I  s$   ýùúr   c                
   @   s’   e Zd ZdZdZg d¢Zg d¢ZdgZdZde	e
jdd	�efe	e
jdd	�ejfe	e
jdd	�ejfe	e
jdd	�ejfe	e
jd
dd�ejfegiZdS )r   zh
    For `MQL4 <http://docs.mql4.com/>`_ and
    `MQL5 <http://www.mql5.com/en/docs>`_ source code.
    ZMQL)ZmqlZmq4Zmq5Zmql4Zmql5)z*.mq4z*.mq5z*.mqhz
text/x-mqlr    rO   rH   rI   z(clr)?r€   N)rP   rQ   rR   rS   rT   rU   rV   rW   rX   r   r   Úkeywordsr   Zc_typesrY   Útypesr   rÒ   Ú	constantsÚConstantÚcolorsr   r[   r\   r\   r\   r]   r   Š  s"   ÿùÿr   c                   @   s\   e Zd ZdZdZdgZdgZdgZdZddhZ	h d	£Z
h d
£Zh d£Zh d£Zddd„ZdS )r   u˜   
    For `Arduino(tm) <https://arduino.cc/>`_ source.

    This is an extension of the CppLexer, as the ArduinoÂ® Language is a superset
    of C++
    ZArduinoZarduinoz*.inoztext/x-arduinoz2.1ÚsetupZloop>   Úxorrx   rw   ry   >Y   rC   zunsigned intr0   Z
atomic_intZOUTPUTÚarrayZDIGITAL_MESSAGEZINTERNAL2V56r±   r®   r#   ZFIRMATA_STRINGr´   ÚexplicitZ_BoolZSET_PIN_MODEr¸   ZPROGMEMZint64_tr£   Zatomic_longzunsigned longZ
_ImaginaryÚsignedÚoperatorZatomic_ullongZ
const_castZuint16_trž   zunsigned charr«   r²   ZLOWr   ÚunsignedZatomic_uintZatomic_ucharZatomic_ushortrB   Zreinterpret_castr¹   Ústructr�   Zint32_tZREPORT_ANALOGZuint8_tÚtypedefZstatic_castZSYSEX_STARTZINTERNAL1V1Úwordr3   Zatomic_boolr%   Zatomic_shortZINPUTÚautor2   ZEXTERNALZANALOG_MESSAGEZLED_BUILTINZdynamic_castru   r$   Z_ComplexrŸ   Zfriendr³   r©   Zint16_tZatomic_ulongÚunionr’   Zatomic_scharZHIGHZatomic_charZuint64_tZatomic_llongr°   ÚcomplexÚbooleanZint8_tr™   r(   ZINPUT_PULLUPZSYSTEM_RESETZuint32_tZINTERNALZREPORT_DIGITAL>W  ZreadJoystickXZrobotNameReadZWiFiUDPZTaskZUSBHostÚcosZnoCursorÚwidthZ
attachGPRSZ
tempoWriteZwriteRGBZisActionDoneZnoToneZretrieveCallingNumberZwriteMicrosecondsZ	switchPINZ
RobotMotorZGSMBandZ	writeJSONZStepperZ	isPressedZcityNameReadZkeyReleasedZIRreadZ
parseFloatZ
getYChangeZ
createCharÚsinZ
sendAnalogÚheightZ
readSliderZleftToRightZ	SchedulerÚ	connectedZpressZ
beginWriteZSerialZlowByteZ
releaseAllZ	constrainZ	readGreenZgetIMEIÚopenZMouseControllerZbitReadZ
playMelodyÚpeekZ
analogReadZ	IPAddressÚstopZlistenOnLocalhostÚflushÚreleaseZnoStrokeZpointZendTransmissionZBridgeÚstepZ
setPINUsedZisHexadecimalDigitZ	loadImageZtoneZhighByteZisGraphZEthernetUDPZMailboxZgetVoiceCallStatusZscrollDisplayLeftZbeginSpeakerZmessageAvailableZ	noDisplayZsetTextSizeZgetKeyZbeepÚ
setTimeoutZisAlphaNumericZisDirectoryÚrandomÚattachZrunShellCommandZsendDigitalPortsZisLowerCaseZbeginSMSZLiquidCrystalZscrollDisplayRightZprintlnÚfillZnoBlinkZ	voiceCallZencryptionTypeZdrawCompassÚmoveZ	writeBlueÚlistenZsetBandZdisplayZrequestFromZwriteRedÚprocessZEthernetClientÚexistsZ	pauseModeZclearScreenÚFileIOZ
motorsStopZanalogReadResolutionZbeginSDZwaitContinueZEsploraZsetDataModeÚremoveZgetCurrentCarrierÚhomeZdrawBMPZreadStringUntilZdigitalWriteZendSMSZbeginTransmissionZbitClearZ
GSMScannerZrunningrÕ   ZisSpaceZcircleZsendDigitalPortPairZ
autoscrollÚfindZreadLightSensorZ	changePINZEthernetServerZshiftOutZisPrintableZ	GSMClientZ
getPINUsedÚabsZmillisÚcursorZrightToLeftZ
getXChangeZmicrosZ
WiFiClientZ	startLoopZtransferZmotorsWriteÚreadyZaddParameterZupdateIRZblinkZturnZbitWriteZdisplayLogosZcheckPUKZreadAccelerometerZclickZ
disconnectZreadTemperatureZ	getResultZServoÚrunZsetSpeedZparsePacketZisAsciiZsetModeZlineFollowConfigZ
HttpClientÚbufferZSoftwareSerialÚcloseÚProcessZdigitalReadZcheckPINZRSSIÚbitZGSMPINZMouseZ
answerCallZsetBitOrderZuserNameWriteZscanNetworksZdetachInterruptZ	getOemKeyZFirmataZcountryNameWriteZisDigitZ	gatewayIPZGSMModemZSDZnoFillÚreadZbeginPacketZattachedZisPunctZsetDNSZnoAutoscrollZplayFileÚconnectÚpowÚprintZblinkVersionZcountryNameReadZ
debugPrintZreadNetworksZgetModifiersZreadBytesUntilZbitSetZcheckRegZisWhitespaceZisPINZrectÚServerZ	onReceiveZgetSignalStrengthZisAlphaZGSMVoiceCallÚpositionZ	getButtonZsetFirmwareVersionZrunShellCommandAsynchronouslyrª   ZanalogReferenceZEEPROMZserialEventZlocalIPZ	isControlZWiFiZ	exitValueZreadRedÚrmdirZ	findUntilÚsizeZ
subnetMaskZ	tuneWriteZEthernetÚendZreadMessageZopenNextFileZprintVersionÚclearZConsoleZStreamÚ	availableZreadJoystickYZ	readBytesZmaintainZ
backgroundZremoteIPZ
EsploraTFTZnoInterruptsZBSSIDZ	YunServerZisValidÚmapZWireZ
interruptsZSPIZKeyboardControllerZanalogWriteResolutionÚbeginZreadJoystickButtonZoverflowZ
randomSeedZendWriteZdelayMicrosecondsÚsqrtÚputZrewindDirectoryZknobReadÚconfigr“   ZparseCommandZ	GSMServerZreadMicrophoneZmousePressedZbeginTFTZsetClockDividerZcompassReadZTFTZgetBandZ	onRequestÚdetachÚlineZmouseDraggedÚFileZshiftInZremoteNumberZPImageZSSIDÚseekZpulseInÚimageZreadBlueZrobotNameWriteZhangCallZ	endPacketZClientZnoBufferZrunAsynchronouslyÚprepareÚmkdirZKeyboardZprocessInputZ
sendStringZreadJoystickSwitchZwriteMessageZ	setCursorZ	sendSysexÚtanZ
readButtonZRobotControlZ
macAddressZ
writeGreenZGSM_SMSZprintFirmwareVersionÚshutdownZattachInterruptZ
readStringZAudioZpinModeZnoListenOnLocalhostÚwriteZpointToZanalogWriteZ
remotePortZcityNameWriteZ	YunClientZisUpperCaseZkeyboardReadÚminZGSMÚdelayZgetAsynchronouslyZ
FileSystemZisListeningZparseIntZ	getSocketZuserNameReadZ
mouseMovedÚmaxZ
WiFiServerZstrokeZ
keyPressedZGPRSZmouseReleased>   Znoexceptr—   Z	constexprr˜   r-   ÚtemplaterG   ZasmÚdecltypeZrestrictZalignofZthread_localÚmutableÚtypenameÚtypeidrÈ   c                 c   s¨   t  | ||¡D ]”\}}}|| jv r2|tj|fV  q|| jv rJ|t|fV  q|| jv rd|tj	|fV  q|| j
v r||t|fV  q|| jv r–|tj|fV  q|||fV  qd S rÉ   )r   rÊ   Ú	structurer   rŽ   Ú	operatorsr
   rÍ   r   rÐ   Úsuppress_highlightrÑ   rÒ   rÓ   r\   r\   r]   rÊ     s    




z#ArduinoLexer.get_tokens_unprocessedN)rÈ   )rP   rQ   rR   rS   rT   rU   rV   rW   rX   r7  r8  rÍ   rÑ   r9  rÊ   r\   r\   r\   r]   r   ¢  s   Ar   c                   @   sT   e Zd ZdZdZdgZdgZdZg Zdde	e
eƒdfed	ƒe
fed
ƒe
fegiZdS )r   zO
    For `Charm++ <https://charm.cs.illinois.edu>`_ interface files (.ci).
    ZCharmciZcharmciz*.ciz2.4rã   z(module)(\s+)rL   )Z
mainmoduleZ	mainchareZcharerê   ÚgroupZ	nodegroupÚmessageZconditional)ÚentryZ	aggregateZthreadedÚsyncZ	exclusiveZnokeepÚnotraceZ	immediateZ	expeditedr3   ÚlocalÚpythonZaccelZ	readwriteZ	writeonlyZ
accelblockZmemcriticalÚpackedZvarsizeZinitprocZinitnodeZinitcallZ	stacksizeZ
createhereZ
createhomeZreductiontargetÚigetZnocopyr4  Z
migratableÚreadonlyN)rP   rQ   rR   rS   rT   rU   rV   rX   rW   r   r   r   r   r   r[   r\   r\   r\   r]   r   !  s"   ÿúõÿr   c                   @   sê  e Zd ZdZdZdZdgZddgZg ZdZ	dZ
ed	d
dd�efdeejejƒdfdeejejejejƒfdeejejejejƒfdeejejƒfdejfdejfdejfdejfdejfdefedƒefe
efdefgedƒdedfedƒdefded fgded!fedƒed ƒgd"e
 ejd#fgedƒd$efd%ejfed&ƒd'ed fgedƒed(d
dd�ejfed)d
dd�ej fed*d
d+d�eee!ej"ƒfed,d
dd�efd-eee!ej"ƒd.fd/eej#e!ej#ƒfd0eeje!eƒfd1efedƒed&ƒgd2œZ$d3S )4r   zJ
    Lexer for Object Management Group Interface Definition Language.
    z!OMG Interface Definition Languagez'https://www.omg.org/spec/IDL/About-IDL/zomg-idlz*.idlz*.pidlz2.9z((::)?\w+)+)rB   rC   z(?i)rH   r€   z
([Ll]?)(")r£   z([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>>z[{};:,<>\[\]]r»   z\(r¾   Úvaluesú=z\)rN   Úannotation_paramsú@Úannotation_params_maybez[{,]z\w+Úannotation_applz\})rð   r«   r?   r§   Zinoutr?  )r°   ÚanyZnativeZbitfieldrî   rõ   r±   ZwcharÚoctetr¹   r¸   rµ   rº   r¶   r·   r¡   r›   rœ   r�   r³   r²   ÚfixedÚsequencer£   Zwstringr   )	z@annotationrï   ró   Zbitsetr)   Ú	exceptionZ	valuetypeZ	eventtyperb   z
(\s+)(\w+))&r*   rs   Ú	attributer=   Z	connectorZconsumesÚcontextZcustomr   ZemitsÚfactoryÚfinderZ	getraisesr  r1   ZmanagesZ
mirrorportÚmultipleZObjectZonewayZ
primarykeyr#   ÚportZporttyperi   r%   Z	publishesZraisesrC  Z	setraisesZsupportsr<   Ztruncatabler6  r5  Z
typeprefixrk   Z	ValueBasez(?i)(enum|bitmask)(\s+)(\w+)ru   z(?i)(module)(\s+)(\w+)z(\w+)(\s*)(=)z[\(\)])rD  rF  rH  rI  ru   rˆ   N)%rP   rQ   rR   rS   rT   r‰   rU   rV   rW   rX   Zscoped_namer   r   r   r   ZAffixÚDoublerÀ   r�   rÁ   rŒ   r�   rÂ   r
   r   r   r   r   rÃ   ræ   r   rÄ   rY   r   rZ   rÅ   r[   r\   r\   r\   r]   r   >  sœ   ÿÿ
ðûýÿûýýúúýýøø	ÿÿß×r   c                   @   sð   e Zd ZdZdZdgZg d¢ZdgZdZdZ	de
fd	efd
ee
ejƒfegeddd�ejfgeddd�efeddd�ejfeddd�efeddd�ejfeddd�ejfde
jfeddd�ejfeddd�efeddd�ejfdefg
dœZdS )r   z2
    For the Promela language used with SPIN.
    ZPromelaZpromela)z*.pmlz*.promz*.prmz	*.promelaz*.prz*.pmztext/x-promelaz(https://spinroot.com/spin/whatispin.htmlz2.18z(\[\]|<>|/\\|\\/)|(U|W|V)\brG  r¯   )r  rž   rŸ   Úpidr¹   r´   rî   rH   rI   )r_   r5   Zd_stepr;   Zodr9   r?   rz   r7   ÚfiZunless)ÚassertZget_priorityZprintfZprintmZset_priority)Zc_codeZc_declZc_exprZc_stateZc_track)Ú_Ú_lastZ_nr_prZ_pidZ	_priorityr8   Znp_ZSTDIN)ÚemptyZenabledr~   ÚfullÚlenÚnemptyÚnfullZpc_valuezrun\b)ÚactiveZchanZ
D_proctypeÚhiddenÚinitr?  ÚmtypeÚneverr>  ZproctypeÚshowÚtracerð   ZxrÚxs)râ   Úprovided)r3   ZltlÚselectzskip\b)rO   rä   rã   N)rP   rQ   rR   rS   rT   rU   rV   rW   r‰   rX   r
   r   r   r   rÆ   r   r   r   rY   rÒ   rŽ   ÚWordrÄ   r[   r\   r\   r\   r]   r   ›  s|   	üþýþ	þýþýþýþýþýýüÿþÿþÕòr   )%rS   rÚ   Zpygments.lexerr   r   r   r   r   r   Zpygments.tokenr   r	   r
   r   r   r   r   r   r   Zpygments.lexers.c_cppr   r   Zpygments.lexersr   Ú__all__r   r   r   r   r   r   r   r   r   r   r   r   r\   r\   r\   r]   Ú<module>   s$   
 ,(8!c/A]