ó

Þà]c        #   @  sb  d  Z  d d l m Z i d¶ d 6d· d( 6d¸ d0 6d¹ dA 6dº dP 6d» ds 6d¼ d} 6d½ d‰ 6d¾ d› 6d¿ d£ 6dÀ dª 6Z e d« k r^d d¬ l Z d d¬ l Z xJ e e e j	 ƒ d­ d d ƒ D]) Z
 e j	 e
 j d® ƒ r­ e j	 e
 =q­ q­ Wy d d¯ l m Z Wn! e k
 rd d¯ l m Z n Xd d¬ l Z d° „  Z d± „  Z d² „  Z d³ „  Z d´ „  Z dµ „  Z e ƒ  n  d¬ S(Á   s³  
    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.
iÿÿÿÿ(   t   print_functiont   _Gt   _VERSIONt   assertt   collectgarbaget   dofilet   errort   getmetatablet   ipairst   loadt   loadfilet   nextt   pairst   pcallt   printt   rawequalt   rawgett   rawlent   rawsett   selectt   setmetatablet   tonumbert   tostringt   typet   xpcallt   basics   bit32.arshifts
   bit32.bands
   bit32.bnots	   bit32.bors   bit32.btests
   bit32.bxors   bit32.extracts   bit32.lrotates   bit32.lshifts   bit32.replaces   bit32.rrotates   bit32.rshiftt   bit32s   coroutine.creates   coroutine.isyieldables   coroutine.resumes   coroutine.runnings   coroutine.statuss   coroutine.wraps   coroutine.yieldt	   coroutines   debug.debugs   debug.gethooks   debug.getinfos   debug.getlocals   debug.getmetatables   debug.getregistrys   debug.getupvalues   debug.getuservalues   debug.sethooks   debug.setlocals   debug.setmetatables   debug.setupvalues   debug.setuservalues   debug.tracebacks   debug.upvalueids   debug.upvaluejoint   debugs   io.closes   io.flushs   io.inputs   io.liness   io.opens	   io.outputs   io.popens   io.reads	   io.stderrs   io.stdins	   io.stdouts
   io.tmpfiles   io.types   io.writet   ios   math.abss	   math.acoss	   math.asins	   math.atans
   math.atan2s	   math.ceils   math.coss	   math.coshs   math.degs   math.exps
   math.floors	   math.fmods
   math.frexps	   math.huges
   math.ldexps   math.logs   math.maxs   math.maxintegers   math.mins   math.minintegers	   math.modfs   math.pis   math.pows   math.rads   math.randoms   math.randomseeds   math.sins	   math.sinhs	   math.sqrts   math.tans	   math.tanhs   math.tointegers	   math.types   math.ultt   maths   package.configs   package.cpaths   package.loadeds   package.loadlibs   package.paths   package.preloads   package.searcherss   package.searchpatht   requiret   moduless   os.clocks   os.dates   os.difftimes
   os.executes   os.exits	   os.getenvs	   os.removes	   os.renames   os.setlocales   os.times
   os.tmpnamet   oss   string.bytes   string.chars   string.dumps   string.finds   string.formats   string.gmatchs   string.gsubs
   string.lens   string.lowers   string.matchs   string.packs   string.packsizes
   string.reps   string.reverses
   string.subs   string.unpacks   string.uppert   strings   table.concats   table.inserts
   table.moves
   table.packs   table.removes
   table.sorts   table.unpackt   tables	   utf8.chars   utf8.charpatterns   utf8.codepoints
   utf8.codess   utf8.lens   utf8.offsett   utf8t   __main__Ni   s   /lexers(   t   urlopenc          C  s„   d „  }  d „  } d „  } d „  } d „  } d „  } d „  } d „  } i |  d	 6| d
 6| d 6| d 6| d 6| d 6| d 6| d 6S(   Nc         S  s   |  j  d ƒ S(   Ns
   coroutine.(   t
   startswith(   t   name(    (    s<   lib/python2.7/site-packages/pygments/lexers/_lua_builtins.pyt   is_in_coroutine_moduleÄ   s    c         S  s'   |  d k s |  j  d ƒ r t St Sd  S(   NR   t   modulet   package(   R   R*   (   R'   t   Truet   False(   R(   (    (    s<   lib/python2.7/site-packages/pygments/lexers/_lua_builtins.pyt   is_in_modules_moduleÇ   s    c         S  s   |  j  d ƒ S(   Ns   string.(   R'   (   R(   (    (    s<   lib/python2.7/site-packages/pygments/lexers/_lua_builtins.pyt   is_in_string_moduleÍ   s    c         S  s   |  j  d ƒ S(   Ns   table.(   R'   (   R(   (    (    s<   lib/python2.7/site-packages/pygments/lexers/_lua_builtins.pyt   is_in_table_moduleÐ   s    c         S  s   |  j  d ƒ S(   NR   (   R'   (   R(   (    (    s<   lib/python2.7/site-packages/pygments/lexers/_lua_builtins.pyt   is_in_math_moduleÓ   s    c         S  s   |  j  d ƒ S(   Ns   io.(   R'   (   R(   (    (    s<   lib/python2.7/site-packages/pygments/lexers/_lua_builtins.pyt   is_in_io_moduleÖ   s    c         S  s   |  j  d ƒ S(   Ns   os.(   R'   (   R(   (    (    s<   lib/python2.7/site-packages/pygments/lexers/_lua_builtins.pyt   is_in_os_moduleÙ   s    c         S  s   |  j  d ƒ S(   Ns   debug.(   R'   (   R(   (    (    s<   lib/python2.7/site-packages/pygments/lexers/_lua_builtins.pyt   is_in_debug_moduleÜ   s    R   R    R"   R#   R   R   R!   R   (    (   R)   R.   R/   R0   R1   R2   R3   R4   (    (    s<   lib/python2.7/site-packages/pygments/lexers/_lua_builtins.pyt   module_callbacksÃ   s     								
c          C  sY   t  d ƒ }  t j d ƒ } x7 |  D]/ } | j | ƒ } | d  k	 r" | j ƒ  d Sq" Wd  S(   Ns   http://www.lua.org/manual/s"   ^<A HREF="(\d\.\d)/">(Lua )?\1</A>i    (   R&   t   ret   compilet   matcht   Nonet   groups(   t   ft   rt   linet   m(    (    s<   lib/python2.7/site-packages/pygments/lexers/_lua_builtins.pyt   get_newest_versionê   s    c         C  so   t  d |  ƒ } t j d ƒ } g  } xC | D]; } | j | ƒ } | d  k	 r, | j | j ƒ  d ƒ q, q, W| S(   Ns   http://www.lua.org/manual/%s/s4   ^<A HREF="manual.html#pdf-(?!lua|LUA)([^:]+)">\1</A>i    (   R&   R6   R7   R8   R9   t   appendR:   (   t   versionR;   R<   t	   functionsR=   R>   (    (    s<   lib/python2.7/site-packages/pygments/lexers/_lua_builtins.pyt   get_lua_functionsò   s    c         C  sU   x- t  ƒ  j ƒ  D] \ } } | |  ƒ r | Sq Wd |  k rM |  j d ƒ d Sd Sd  S(   Nt   .i    R   (   R5   t   itemst   split(   R(   t   modt   cb(    (    s<   lib/python2.7/site-packages/pygments/lexers/_lua_builtins.pyt   get_function_moduleü   s    c      	   C  s—   t  |  ƒ  } | j ƒ  } Wd  QX| | j d ƒ  } | | j d ƒ } t  |  d ƒ ; } | j | ƒ | j d t j | ƒ ƒ | j | ƒ Wd  QXd  S(   Ns   MODULES = {s   if __name__ == '__main__':t   ws   MODULES = %s

(   t   opent   readt   findt   writet   pprintt   pformat(   t   filenameR    t   fpt   contentt   headert   footer(    (    s<   lib/python2.7/site-packages/pygments/lexers/_lua_builtins.pyt
   regenerate  s    c          C  sú   t  ƒ  }  t ƒ  } xh d |  f D]Z } t d | ƒ t | ƒ } t d t | ƒ t t | ƒ | ƒ f ƒ | t | ƒ O} q Wt | ƒ } i  } xA | D]9 } t d | ƒ t | ƒ } | j | g  ƒ j | ƒ q– Wd „  | j	 ƒ  Dƒ } t
 t | ƒ d  S(   Ns   5.2s'   > Downloading function index for Lua %ss   > %d functions found, %d new:s   >> %sc         S  s%   i  |  ] \ } } t  | ƒ | “ q S(    (   t   tuple(   t   .0t   kt   v(    (    s<   lib/python2.7/site-packages/pygments/lexers/_lua_builtins.pys
   <dictcomp>#  s   	 (   R?   t   setR   RC   t   lent   sortedRI   t
   setdefaultR@   t	   iteritemsRV   t   __file__(   RA   RB   RZ   R;   R    t   full_function_nameR>   (    (    s<   lib/python2.7/site-packages/pygments/lexers/_lua_builtins.pyt   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   (   s   bit32.arshifts
   bit32.bands
   bit32.bnots	   bit32.bors   bit32.btests
   bit32.bxors   bit32.extracts   bit32.lrotates   bit32.lshifts   bit32.replaces   bit32.rrotates   bit32.rshift(   s   coroutine.creates   coroutine.isyieldables   coroutine.resumes   coroutine.runnings   coroutine.statuss   coroutine.wraps   coroutine.yield(   s   debug.debugs   debug.gethooks   debug.getinfos   debug.getlocals   debug.getmetatables   debug.getregistrys   debug.getupvalues   debug.getuservalues   debug.sethooks   debug.setlocals   debug.setmetatables   debug.setupvalues   debug.setuservalues   debug.tracebacks   debug.upvalueids   debug.upvaluejoin(   s   io.closes   io.flushs   io.inputs   io.liness   io.opens	   io.outputs   io.popens   io.reads	   io.stderrs   io.stdins	   io.stdouts
   io.tmpfiles   io.types   io.write("   s   math.abss	   math.acoss	   math.asins	   math.atans
   math.atan2s	   math.ceils   math.coss	   math.coshs   math.degs   math.exps
   math.floors	   math.fmods
   math.frexps	   math.huges
   math.ldexps   math.logs   math.maxs   math.maxintegers   math.mins   math.minintegers	   math.modfs   math.pis   math.pows   math.rads   math.randoms   math.randomseeds   math.sins	   math.sinhs	   math.sqrts   math.tans	   math.tanhs   math.tointegers	   math.types   math.ult(	   s   package.configs   package.cpaths   package.loadeds   package.loadlibs   package.paths   package.preloads   package.searcherss   package.searchpathR   (   s   os.clocks   os.dates   os.difftimes
   os.executes   os.exits	   os.getenvs	   os.removes	   os.renames   os.setlocales   os.times
   os.tmpname(   s   string.bytes   string.chars   string.dumps   string.finds   string.formats   string.gmatchs   string.gsubs
   string.lens   string.lowers   string.matchs   string.packs   string.packsizes
   string.reps   string.reverses
   string.subs   string.unpacks   string.upper(   s   table.concats   table.inserts
   table.moves
   table.packs   table.removes
   table.sorts   table.unpack(   s	   utf8.chars   utf8.charpatterns   utf8.codepoints
   utf8.codess   utf8.lens   utf8.offset(   t   __doc__t
   __future__R    t   MODULESt   __name__R6   t   syst   rangeR\   t   patht   it   endswitht   urllibR&   t   ImportErrort   urllib.requestRO   R5   R?   RC   RI   RV   Rb   (    (    (    s<   lib/python2.7/site-packages/pygments/lexers/_lua_builtins.pyt   <module>   s`                                                                                                                                                   
&	'		
				