a
    T_v                     @   s^   d Z ddlZddlmZmZ ddlmZmZmZm	Z	m
Z
mZmZmZ dgZG dd deZdS )z
    pygments.lexers.urbi
    ~~~~~~~~~~~~~~~~~~~~

    Lexers for UrbiScript language.

    :copyright: Copyright 2006-2020 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
    N)ExtendedRegexLexerwords)TextCommentOperatorKeywordNameStringNumberPunctuationUrbiscriptLexerc                   @   s<  e Zd ZdZdZdgZdgZdgZej	Z
dd Zdefd	efd
ejdfdefedddefedddejfdefdefdejfdejfedddejfdejjfdefdejfdefdefdejfdejfdejfdejdfd ej d!fgd"efd#ejd$fgd%efd&ej d$fgd'ejfd
ejd(fd)ejd$fd*ejfgd+Z!d,S )-r   z@
    For UrbiScript source code.

    .. versionadded:: 1.5
    Z
UrbiScriptZ
urbiscriptz*.uzapplication/x-urbiscriptc           	      c   s   | d}| d}| d}t|}| t|fV  | jt|7  _|j| |  dkrd| d }| t|fV  | jt|7  _d S ||j| | |   d }| tj|fV  | | d |_d S )N         )z\B(z)()	groupintstartr	   poslentextendZEscape)	ZlexermatchctxZtext_before_blobZ
blob_startZblob_size_strZ	blob_sizeresultZ	blob_text r   6/usr/lib/python3/dist-packages/pygments/lexers/urbi.pyblob_callback'   s    


"zUrbiscriptLexer.blob_callbackz\s+z//.*?\nz/\*commentz"(every|for|loop|while)(?:;|&|\||,))assertZatbreakZcaseZcatchZclosureZcomplcontinuedefaultelseenumZeveryZexternalfinallyforZfreezeififnewZonleavereturnZstopifZswitchthisthrowZtimeouttryZ	waituntilZwheneverwhilez\b)suffix)$ZasmautoboolcharZ
const_castdeleteZdoubleZdynamic_castZexplicitZexportZexternfloatZfriendZgotoZinliner   ZlongZmutable	namespaceregisterZreinterpret_castZshortZsignedZsizeofZstatic_castZstructtemplateZtypedefZtypeidtypenameunionZunsignedZusingZvirtualZvolatileZwchar_tz&(emit|foreach|internal|loopn|static)\bz(private|protected|public)\bz(var|do|const|function|class)\bz(true|false|nil|void)\b)EZBarrierZBinaryZBooleanZCallMessageZChannelZCodeZ
Comparable	ContainerZControlZDateZ
DictionaryZ	DirectoryZDurationZEnumerationZEvent	ExceptionZ
ExecutableZFileZFinalizableFloatZ
FormatInfoZ	FormatterZGlobalZGroupZHashZInputStreamZ	IoServiceZJobZKernelZLazyListZLoadableZLobbyZLocationZLoggerZMathZMutexZnilZObjectZ	OrderableZOutputStreamZPairPathPatternZPositionZ	PrimitiveZProcessZProfileZ
PseudoLazyZPubSubZRangeIterableZRegexpZ	SemaphoreZServerZ	SingletonZSocketZ
StackFrameZStreamr	   ZSystemZTagZTimeoutZ	TraceableZTrajectoryGeneratorZTripletTupleZUObjectZUValueZUVarz
(?:this)\bz(?:[-=+*%/<>~^:]+|\.&?|\|\||&&)z?(?:and_eq|and|bitand|bitor|in|not|not_eq|or_eq|or|xor_eq|xor)\bz[{}\[\]()]+z(?:;|\||,|&|\?|!)+z[$a-zA-Z_]\w*z0x[0-9a-fA-F]+zV(?:[0-9]+(?:(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?)?((?:rad|deg|grad)|(?:ms|s|min|h|d))?)\b"string.double'string.singlez%((?:\\\\|\\"|[^"])*?)(\\B\((\d+)\)\()z(\\\\|\\"|[^"])*?"z#popz%((?:\\\\|\\'|[^'])*?)(\\B\((\d+)\)\()z(\\\\|\\'|[^'])*?'z[^*/]z#pushz\*/z[*/])rootrA   rC   r   N)"__name__
__module____qualname____doc__namealiases	filenamesZ	mimetypesreDOTALLflagsr   r   r   Z	Multiliner   r   ZReservedZDeclarationZConstantr   ZBuiltinZPseudor   ZWordr   ZOtherr
   ZHexr;   r	   DoubleSingletokensr   r   r   r   r      sr   
	


:



)rH   rL   Zpygments.lexerr   r   Zpygments.tokenr   r   r   r   r   r	   r
   r   __all__r   r   r   r   r   <module>   s
   
(