3
.ßL]š   ã            '   @   sø   d Z ddlmZ d²d³d´dµd¶d·d¸d¹dºd»d¼d œZed¡k� rôdd¢lZdd¢lZx:eeej	ƒd£ d½d¾ƒD ] Z
ej	e
 jd¤ƒ� r^ej	e
= � q^W ydd¥lmZ W n" ek
� r´   dd¥lmZ Y nX dd¢lZd¦d§„ Zd¨d©„ Zdªd«„ Zd¬d­„ Zd®d¯„ Zd°d±„ Zeƒ  d¢S )¿a³  
    pygments.lexers._lua_builtins
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    This file contains the names and modules of lua functions
    It is able to re-generate itself, but for adding new functions you
    probably have to add some callbacks (see function module_callbacks).

    Do not edit the MODULES dict by hand.

    :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
é    )Úprint_functionÚ_GÚ_VERSIONÚassertÚcollectgarbageÚdofileÚerrorÚgetmetatableÚipairsÚloadÚloadfileÚnextÚpairsÚpcallÚprintÚrawequalÚrawgetÚrawlenÚrawsetÚselectÚsetmetatableÚtonumberÚtostringÚtypeÚxpcallúbit32.arshiftú
bit32.bandú
bit32.bnotú	bit32.borúbit32.btestú
bit32.bxorúbit32.extractúbit32.lrotateúbit32.lshiftúbit32.replaceúbit32.rrotateúbit32.rshiftúcoroutine.createúcoroutine.isyieldableúcoroutine.resumeúcoroutine.runningúcoroutine.statusúcoroutine.wrapúcoroutine.yieldúdebug.debugúdebug.gethookúdebug.getinfoúdebug.getlocalúdebug.getmetatableúdebug.getregistryúdebug.getupvalueúdebug.getuservalueúdebug.sethookúdebug.setlocalúdebug.setmetatableúdebug.setupvalueúdebug.setuservalueúdebug.tracebackúdebug.upvalueidúdebug.upvaluejoinúio.closeúio.flushúio.inputúio.linesúio.openú	io.outputúio.popenúio.readú	io.stderrúio.stdinú	io.stdoutú
io.tmpfileúio.typeúio.writeúmath.absú	math.acosú	math.asinú	math.atanú
math.atan2ú	math.ceilúmath.cosú	math.coshúmath.degúmath.expú
math.floorú	math.fmodú
math.frexpú	math.hugeú
math.ldexpúmath.logúmath.maxúmath.maxintegerúmath.minúmath.minintegerú	math.modfúmath.piúmath.powúmath.radúmath.randomúmath.randomseedúmath.sinú	math.sinhú	math.sqrtúmath.tanú	math.tanhúmath.tointegerú	math.typeúmath.ultúpackage.configúpackage.cpathúpackage.loadedúpackage.loadlibúpackage.pathúpackage.preloadúpackage.searchersúpackage.searchpathÚrequireúos.clockúos.dateúos.difftimeú
os.executeúos.exitú	os.getenvú	os.removeú	os.renameúos.setlocaleúos.timeú
os.tmpnameústring.byteústring.charústring.dumpústring.findústring.formatústring.gmatchústring.gsubú
string.lenústring.lowerústring.matchústring.packústring.packsizeú
string.repústring.reverseú
string.subústring.unpackústring.upperútable.concatútable.insertú
table.moveú
table.packútable.removeú
table.sortútable.unpackú	utf8.charúutf8.charpatternúutf8.codepointú
utf8.codesúutf8.lenúutf8.offset)ÚbasicZbit32Ú	coroutineÚdebugÚioÚmathÚmodulesÚosÚstringÚtableÚutf8Ú__main__Né   z/lexers)Úurlopenc           	   C   sV   dd„ } dd„ }dd„ }dd„ }d	d
„ }dd„ }dd„ }dd„ }| |||||||dœS )Nc             S   s
   | j dƒS )Nz
coroutine.)Ú
startswith)Úname© r¯   úC/tmp/pip-install-5sebvq2j/pygments/pygments/lexers/_lua_builtins.pyÚis_in_coroutine_moduleÄ   s    z0module_callbacks.<locals>.is_in_coroutine_modulec             S   s   | dks| j dƒrdS dS d S )Nrv   ÚmoduleÚpackageTF)rv   r²   )r­   )r®   r¯   r¯   r°   Úis_in_modules_moduleÇ   s    z.module_callbacks.<locals>.is_in_modules_modulec             S   s
   | j dƒS )Nzstring.)r­   )r®   r¯   r¯   r°   Úis_in_string_moduleÍ   s    z-module_callbacks.<locals>.is_in_string_modulec             S   s
   | j dƒS )Nztable.)r­   )r®   r¯   r¯   r°   Úis_in_table_moduleÐ   s    z,module_callbacks.<locals>.is_in_table_modulec             S   s
   | j dƒS )Nr¤   )r­   )r®   r¯   r¯   r°   Úis_in_math_moduleÓ   s    z+module_callbacks.<locals>.is_in_math_modulec             S   s
   | j dƒS )Nzio.)r­   )r®   r¯   r¯   r°   Úis_in_io_moduleÖ   s    z)module_callbacks.<locals>.is_in_io_modulec             S   s
   | j dƒS )Nzos.)r­   )r®   r¯   r¯   r°   Úis_in_os_moduleÙ   s    z)module_callbacks.<locals>.is_in_os_modulec             S   s
   | j dƒS )Nzdebug.)r­   )r®   r¯   r¯   r°   Úis_in_debug_moduleÜ   s    z,module_callbacks.<locals>.is_in_debug_module)r¡   r¥   r§   r¨   r¤   r£   r¦   r¢   r¯   )r±   r´   rµ   r¶   r·   r¸   r¹   rº   r¯   r¯   r°   Úmodule_callbacksÃ   s     r»   c              C   sB   t dƒ} tjdƒ}x*| D ]"}|j|ƒ}|d k	r|jƒ d S qW d S )Nzhttp://www.lua.org/manual/z"^<A HREF="(\d\.\d)/">(Lua )?\1</A>r   )r¬   ÚreÚcompileÚmatchÚgroups)ÚfÚrÚlineÚmr¯   r¯   r°   Úget_newest_versionê   s    


rÄ   c             C   sP   t d|  ƒ}tjdƒ}g }x0|D ](}|j|ƒ}|d k	r |j|jƒ d ƒ q W |S )Nzhttp://www.lua.org/manual/%s/z4^<A HREF="manual.html#pdf-(?!lua|LUA)([^:]+)">\1</A>r   )r¬   r¼   r½   r¾   Úappendr¿   )ÚversionrÀ   rÁ   Ú	functionsrÂ   rÃ   r¯   r¯   r°   Úget_lua_functionsò   s    


rÈ   c             C   sB   x"t ƒ jƒ D ]\}}|| ƒr|S qW d| kr:| jdƒd S dS d S )NÚ.r   r    )r»   ÚitemsÚsplit)r®   ÚmodÚcbr¯   r¯   r°   Úget_function_moduleü   s    rÎ   c             C   s‚   t | ƒ�}|jƒ }W d Q R X |d |jdƒ… }||jdƒd … }t | dƒ�.}|j|ƒ |jdtj|ƒ ƒ |j|ƒ W d Q R X d S )NzMODULES = {zif __name__ == '__main__':ÚwzMODULES = %s

)ÚopenÚreadÚfindÚwriteÚpprintÚpformat)Úfilenamer¥   ÚfpÚcontentÚheaderÚfooterr¯   r¯   r°   Ú
regenerate  s    

rÛ   c              C   sÂ   t ƒ } tƒ }xPd| fD ]D}td| ƒ t|ƒ}tdt|ƒtt|ƒ| ƒf ƒ |t|ƒO }qW t|ƒ}i }x2|D ]*}td| ƒ t|ƒ}|j|g ƒj|ƒ qpW t	dd„ |j
ƒ D ƒƒ}tt|ƒ d S )Nz5.2z'> Downloading function index for Lua %sz> %d functions found, %d new:z>> %sc             s   s   | ]\}}|t |ƒfV  qd S )N)Útuple)Ú.0ÚkÚvr¯   r¯   r°   ú	<genexpr>#  s    zrun.<locals>.<genexpr>)rÄ   Úsetr   rÈ   ÚlenÚsortedrÎ   Ú
setdefaultrÅ   ÚdictÚ	iteritemsrÛ   Ú__file__)rÆ   rÇ   rß   rÀ   r¥   Zfull_function_namerÃ   r¯   r¯   r°   Úrun  s     
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,   r-   )r.   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r9   r:   r;   r<   r=   )r>   r?   r@   rA   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`   ra   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é   )Ú__doc__Ú
__future__r   ZMODULESÚ__name__r¼   ÚsysÚrangerâ   ÚpathÚiÚendswithÚurllibr¬   ÚImportErrorÚurllib.requestrÔ   r»   rÄ   rÈ   rÎ   rÛ   rè   r¯   r¯   r¯   r°   Ú<module>   s`                                                                                                                                                    
'
	