3
.ßL]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-2019 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
é    N)ÚExtendedRegexLexerÚwords)ÚTextÚCommentÚOperatorÚKeywordÚNameÚStringÚNumberÚPunctuationÚUrbiscriptLexerc            P   @   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dPefdQefdRejfdSe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Ú   |j dƒ}|j dƒ}|j dƒ}t|ƒ}|jƒ t|fV  | jt|ƒ7  _|j|jƒ |  dkr�d| d }|jƒ t|fV  | jt|ƒ7  _d S ||j|jƒ |jƒ | …  d }|jƒ tj|fV  |jƒ | d |_d S )Né   é   é   ú)z\B(z)()	ÚgroupÚintÚstartr	   ÚposÚlenÚtextÚendZEscape)	ÚlexerÚmatchÚctxZtext_before_blobZ
blob_startZblob_size_strZ	blob_sizeÚresultZ	blob_text© r   ú:/tmp/pip-install-5sebvq2j/pygments/pygments/lexers/urbi.pyÚblob_callback'   s    


"zUrbiscriptLexer.blob_callbackz\s+z//.*?\nz/\*Úcommentz"(every|for|loop|while)(?:;|&|\||,)ÚassertÚatÚbreakÚcaseÚcatchÚclosureÚcomplÚcontinueÚdefaultÚelseÚenumÚeveryÚexternalÚfinallyÚforÚfreezeifÚifÚnewÚonleaveÚreturnÚstopifÚswitchÚthisÚthrowÚtimeoutÚtryÚ	waituntilÚwheneverÚwhilez\b)ÚsuffixÚasmÚautoÚboolÚcharÚ
const_castÚdeleteÚdoubleÚdynamic_castÚexplicitÚexportÚexternÚfloatÚfriendÚgotoÚinliner   ÚlongÚmutableÚ	namespaceÚregisterÚreinterpret_castÚshortÚsignedÚsizeofÚstatic_castÚstructÚtemplateÚtypedefÚtypeidÚtypenameÚunionÚunsignedÚusingÚvirtualÚvolatileÚwchar_tz&(emit|foreach|internal|loopn|static)\bz(private|protected|public)\bz(var|do|const|function|class)\bz(true|false|nil|void)\bÚBarrierÚBinaryÚBooleanÚCallMessageÚChannelÚCodeÚ
ComparableÚ	ContainerÚControlÚDateÚ
DictionaryÚ	DirectoryÚDurationÚEnumerationÚEventÚ	ExceptionÚ
ExecutableÚFileÚFinalizableÚFloatÚ
FormatInfoÚ	FormatterÚGlobalÚGroupÚHashÚInputStreamÚ	IoServiceÚJobÚKernelÚLazyÚListÚLoadableÚLobbyÚLocationÚLoggerÚMathÚMutexÚnilÚObjectÚ	OrderableÚOutputStreamÚPairÚPathÚPatternÚPositionÚ	PrimitiveÚProcessÚProfileÚ
PseudoLazyÚPubSubÚRangeIterableÚRegexpÚ	SemaphoreÚServerÚ	SingletonÚSocketÚ
StackFrameÚStreamr	   ÚSystemÚTagÚTimeoutÚ	TraceableÚTrajectoryGeneratorÚTripletÚTupleÚUObjectÚUValueÚ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ú"zstring.doubleú'zstring.singlez%((?:\\\\|\\"|[^"])*?)(\\B\((\d+)\)\()z(\\\\|\\"|[^"])*?"z#popz%((?:\\\\|\\'|[^'])*?)(\\B\((\d+)\)\()z(\\\\|\\'|[^'])*?'z[^*/]z#pushz\*/z[*/])Úrootzstring.doublezstring.singler   N)r    r!   r"   r#   r$   r%   r&   r'   r(   r)   r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r9   r:   r;   r<   )$r>   r?   r@   rA   rB   rC   rD   rE   rF   rG   rH   rI   rJ   rK   rL   r   rM   rN   rO   rP   rQ   rR   rS   rT   rU   rV   rW   rX   rY   rZ   r[   r\   r]   r^   r_   r`   )Era   rb   rc   rd   re   rf   rg   rh   ri   rj   rk   rl   rm   rn   ro   rp   rq   rr   rs   rt   ru   rv   rw   rx   ry   rz   r{   r|   r}   r~   r   r€   r�   r‚   rƒ   r„   r…   r†   r‡   rˆ   r‰   rŠ   r‹   rŒ   r�   rŽ   r�   r�   r‘   r’   r“   r”   r•   r–   r—   r˜   r™   rš   r	   r›   rœ   r�   rž   rŸ   r    r¡   r¢   r£   r¤   )"Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚnameÚaliasesÚ	filenamesÚ	mimetypesÚreÚDOTALLÚflagsr   r   r   Z	Multiliner   r   ZReservedZDeclarationÚConstantr   ZBuiltinZPseudor   ÚWordr   ZOtherr
   ZHexrt   r	   ÚDoubleÚSingleÚtokensr   r   r   r   r      s€   
                    



)r«   r°   Zpygments.lexerr   r   Zpygments.tokenr   r   r   r   r   r	   r
   r   Ú__all__r   r   r   r   r   Ú<module>
   s
   (