
    Mh                         d 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mZ ddlZd Zd Zd Z	d Z
d Zd Z e             dS 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.

    Run with `python -I` to regenerate.

    :copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
)_G_VERSIONassertcollectgarbagedofileerrorgetmetatableipairsloadloadfilenextpairspcallprintrawequalrawgetrawlenrawsetselectsetmetatabletonumbertostringtypewarnxpcall)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)zcoroutine.closezcoroutine.createzcoroutine.isyieldablezcoroutine.resumezcoroutine.runningzcoroutine.statuszcoroutine.wrapzcoroutine.yield)zdebug.debugzdebug.gethookzdebug.getinfozdebug.getlocalzdebug.getmetatablezdebug.getregistryzdebug.getupvaluezdebug.getuservaluezdebug.sethookzdebug.setlocalzdebug.setmetatablezdebug.setupvaluezdebug.setuservaluezdebug.tracebackzdebug.upvalueidzdebug.upvaluejoin)zio.closezio.flushzio.inputzio.lineszio.openz	io.outputzio.popenzio.readz	io.stderrzio.stdinz	io.stdoutz
io.tmpfilezio.typezio.write)"zmath.absz	math.acosz	math.asinz	math.atanz
math.atan2z	math.ceilzmath.cosz	math.coshzmath.degzmath.expz
math.floorz	math.fmodz
math.frexpz	math.hugez
math.ldexpzmath.logzmath.maxzmath.maxintegerzmath.minzmath.minintegerz	math.modfzmath.pizmath.powzmath.radzmath.randomzmath.randomseedzmath.sinz	math.sinhz	math.sqrtzmath.tanz	math.tanhzmath.tointegerz	math.typezmath.ult)	zpackage.configzpackage.cpathzpackage.loadedzpackage.loadlibzpackage.pathzpackage.preloadzpackage.searcherszpackage.searchpathrequire)zos.clockzos.datezos.difftimez
os.executezos.exitz	os.getenvz	os.removez	os.renamezos.setlocalezos.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.packzstring.packsizez
string.repzstring.reversez
string.subzstring.unpackzstring.upper)ztable.concatztable.insertz
table.movez
table.packztable.removez
table.sortztable.unpack)z	utf8.charzutf8.charpatternzutf8.codepointz
utf8.codeszutf8.lenzutf8.offset)basicbit32	coroutinedebugiomathmodulesosstringtableutf8__main__    N)urlopenc            	      H    d } d }d }d }d }d }d }d }| |||||||d	S )
Nc                 ,    |                      d          S )Nz
coroutine.
startswithnames    ]/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/pygments/lexers/_lua_builtins.pyis_in_coroutine_modulez0module_callbacks.<locals>.is_in_coroutine_module   s    ??<000    c                 <    | dv s|                      d          rdS dS )N)r   modulepackageTFr,   r.   s    r0   is_in_modules_modulez.module_callbacks.<locals>.is_in_modules_module   s)    ,,,	0J0J,tur2   c                 ,    |                      d          S )Nzstring.r,   r.   s    r0   is_in_string_modulez-module_callbacks.<locals>.is_in_string_module   s    ??9---r2   c                 ,    |                      d          S )Nztable.r,   r.   s    r0   is_in_table_modulez,module_callbacks.<locals>.is_in_table_module       ??8,,,r2   c                 ,    |                      d          S )Nr!   r,   r.   s    r0   is_in_math_modulez+module_callbacks.<locals>.is_in_math_module   s    ??6***r2   c                 ,    |                      d          S )Nzio.r,   r.   s    r0   is_in_io_modulez)module_callbacks.<locals>.is_in_io_module       ??5)))r2   c                 ,    |                      d          S )Nzos.r,   r.   s    r0   is_in_os_modulez)module_callbacks.<locals>.is_in_os_module   r@   r2   c                 ,    |                      d          S )Nzdebug.r,   r.   s    r0   is_in_debug_modulez,module_callbacks.<locals>.is_in_debug_module   r;   r2   )r   r"   r$   r%   r!   r    r#   r    )r1   r6   r8   r:   r=   r?   rB   rD   s           r0   module_callbacksrF      s    	1 	1 	1	 	 		. 	. 	.	- 	- 	-	+ 	+ 	+	* 	* 	*	* 	* 	*	- 	- 	- 4/-+)%%+- - 	-r2   c                      t          d          } t          j        d          }| D ]H}|                    |                    d                    }||                                d         c S Id S )Nhttp://www.lua.org/manual/z"^<A HREF="(\d\.\d)/">(Lua )?\1</A>
iso-8859-1r(   )r)   recompilematchdecodegroups)frlinems       r0   get_newest_versionrS      sx    011J<== 	% 	%DL1122A}xxzz!}$$$ 	% 	%r2   c                    t          d|  d          }t          j        d          }g }|D ]Y}|                    |                    d                    }|-|                    |                                d                    Z|S )NrH   /z4^<A HREF="manual.html#pdf-(?!lua|LUA)([^:]+)">\1</A>rI   r(   )r)   rJ   rK   rL   rM   appendrN   )versionrO   rP   	functionsrQ   rR   s         r0   get_lua_functionsrY      s    ;;;;<<JNOO	 	0 	0DL1122A}  A///r2   c                     t                                                      D ]\  }} ||           r|c S d| v r|                     d          d         S dS )N.r(   r   )rF   itemssplit)r/   modcbs      r0   get_function_moduler`      sh    '))//11 	 	GCr$xx 


$;;::c??1%%7r2   c                    t          | d          5 }|                                }d d d            n# 1 swxY w Y   |d |                    d                   }||                    d          d          }t          | dd          5 }|                    |           |                    dt	          j        |           d           |                    |           d d d            d S # 1 swxY w Y   d S )Nzutf-8)encodingzMODULES = {zif __name__ == '__main__':wz
MODULES = z

)openreadfindwritepprintpformat)filenamer"   fpcontentheaderfooters         r0   
regeneratero      ss   (W--- 	 ggiiG	  	  	  	  	  	  	  	  	  	  	  	  	  	  	  5',,}5556&BCCDDE (C'222 	bHHVHH?&."9"9???@@@HHV	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	s   377
AC--C14C1c            
      T   t                      } t                      }d| fD ]s}t          d|            t          |          }t          dt	          |          t	          t          |          |z
            fz             |t          |          z  }tt          |          }i }|D ]L}t          d|            t          |          }|                    |g                               |           Md |	                                D             }t          t          |           d S )Nz5.2z%> Downloading function index for Lua z> %d functions found, %d new:z>> c                 4    i | ]\  }}|t          |          S rE   )tuple).0kvs      r0   
<dictcomp>zrun.<locals>.<dictcomp>  s$    ;;;41a1eAhh;;;r2   )rS   setr   rY   lensortedr`   
setdefaultrV   r\   ro   __file__)rW   rX   ru   rO   r"   full_function_namerR   s          r0   runr}     s>   $&&EE	! 	  	 A=!==>>>!!$$A1q663s1vv	12234 5 5 5QII9%%	"+ 	A 	A,*,,---#$677Aq"%%,,-?@@@@;;7==??;;;8W%%%%%r2   )__doc__MODULES__name__rJ   urllib.requestr)   rh   rF   rS   rY   r`   ro   r}   rE   r2   r0   <module>r      s     2"  !
D
"
s^ ^@ zIII&&&&&&MMM
#- #- #-N% % %      & & &* CEEEEEY r2   