o aQ @sdZddddddddd d d d Zed kroddlZddlZeeejdddD]Zeje dr5eje=q'zddl m Z Wne yMddl m Z YnwddlZddZddZddZddZddZddZedSdS) 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-2021 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. )_G_VERSIONassertcollectgarbagedofileerror getmetatableipairsloadloadfilenextpairspcallprintrawequalrawgetrawlenrawsetselect setmetatabletonumbertostringtypexpcall) z bit32.arshiftz bit32.bandz bit32.bnotz bit32.borz bit32.btestz bit32.bxorz bit32.extractz bit32.lrotatez bit32.lshiftz bit32.replacez bit32.rrotatez bit32.rshift)zcoroutine.createzcoroutine.isyieldablezcoroutine.resumezcoroutine.runningzcoroutine.statuszcoroutine.wrapzcoroutine.yield)z debug.debugz debug.gethookz debug.getinfozdebug.getlocalzdebug.getmetatablezdebug.getregistryzdebug.getupvaluezdebug.getuservaluez debug.sethookzdebug.setlocalzdebug.setmetatablezdebug.setupvaluezdebug.setuservaluezdebug.tracebackzdebug.upvalueidzdebug.upvaluejoin)zio.closezio.flushzio.inputzio.lineszio.openz io.outputzio.popenzio.readz io.stderrzio.stdinz io.stdoutz io.tmpfilezio.typezio.write)"zmath.absz math.acosz math.asinz math.atanz math.atan2z math.ceilzmath.cosz math.coshzmath.degzmath.expz math.floorz math.fmodz math.frexpz math.hugez math.ldexpzmath.logzmath.maxzmath.maxintegerzmath.minzmath.minintegerz math.modfzmath.pizmath.powzmath.radz math.randomzmath.randomseedzmath.sinz math.sinhz math.sqrtzmath.tanz math.tanhzmath.tointegerz math.typezmath.ult) zpackage.configz package.cpathzpackage.loadedzpackage.loadlibz package.pathzpackage.preloadzpackage.searcherszpackage.searchpathrequire) zos.clockzos.datez os.difftimez os.executezos.exitz os.getenvz os.removez os.renamez os.setlocalezos.timez os.tmpname)z string.bytez string.charz string.dumpz string.findz string.formatz string.gmatchz string.gsubz string.lenz string.lowerz string.matchz string.packzstring.packsizez string.repzstring.reversez string.subz string.unpackz string.upper)z table.concatz table.insertz table.movez table.packz table.removez table.sortz table.unpack)z utf8.charzutf8.charpatternzutf8.codepointz utf8.codeszutf8.lenz utf8.offset) basicbit32 coroutinedebugiomathmodulesosstringtableutf8__main__Nz/lexers)urlopenc CsVdd}dd}dd}dd}d d }d d }d d}dd}||||||||dS)NcS |dS)Nz coroutine. startswithnamer/?/usr/lib/python3/dist-packages/pygments/lexers/_lua_builtins.pyis_in_coroutine_module z0module_callbacks..is_in_coroutine_modulecSs|dvs |dr dSdS)N)rmodulepackageTFr+r-r/r/r0is_in_modules_modulesz.module_callbacks..is_in_modules_modulecSr*)Nzstring.r+r-r/r/r0is_in_string_moduler2z-module_callbacks..is_in_string_modulecSr*)Nztable.r+r-r/r/r0is_in_table_moduler2z,module_callbacks..is_in_table_modulecSr*)Nrr+r-r/r/r0is_in_math_moduler2z+module_callbacks..is_in_math_modulecSr*)Nzio.r+r-r/r/r0is_in_io_moduler2z)module_callbacks..is_in_io_modulecSr*)Nzos.r+r-r/r/r0is_in_os_moduler2z)module_callbacks..is_in_os_modulecSr*)Nzdebug.r+r-r/r/r0is_in_debug_moduler2z,module_callbacks..is_in_debug_module)rr r"r#rrr!rr/)r1r5r6r7r8r9r:r;r/r/r0module_callbackss"r<cCsBtd}td}|D]}||}|dur|dSq dS)Nzhttp://www.lua.org/manual/z"^(Lua )?\1r&)r)recompilematchgroups)frlinemr/r/r0get_newest_versions  rEcCsLtd|}td}g}|D]}||}|dur#||dq|S)Nzhttp://www.lua.org/manual/%s/z4^\1r&)r)r=r>r?appendr@)versionrArB functionsrCrDr/r/r0get_lua_functionss   rIcCs>tD] \}}||r|Sqd|vr|ddSdS)N.r&r)r<itemssplit)r.modcbr/r/r0get_function_modulesrOcCst| }|}Wdn1swY|d|d}||dd}t|d}|||dt|||WddS1sOwYdS)Nz MODULES = {zif __name__ == '__main__':wzMODULES = %s )openreadfindwritepprintpformat)filenamer fpcontentheaderfooterr/r/r0 regenerates     "r\cCst}t}d|fD]"}td|t|}tdt|tt||f|t|O}q t|}i}|D]}td|t|}||g|q5dd| D}t t |dS)Nz5.2z'> Downloading function index for Lua %sz> %d functions found, %d new:z>> %scSsi|] \}}|t|qSr/)tuple).0kvr/r/r0 szrun..) rEsetrrIlensortedrO setdefaultrFrKr\__file__)rGrHr`rAr full_function_namerDr/r/r0runs"   rh)__doc__MODULES__name__r=sysrangercpathiendswithurllibr) ImportErrorurllib.requestrUr<rErIrOr\rhr/r/r/r0sH "   '