aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/Pygments/py3/pygments/lexers/_lua_builtins.py
diff options
context:
space:
mode:
authororivej <orivej@yandex-team.ru>2022-02-10 16:45:01 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:01 +0300
commit2d37894b1b037cf24231090eda8589bbb44fb6fc (patch)
treebe835aa92c6248212e705f25388ebafcf84bc7a1 /contrib/python/Pygments/py3/pygments/lexers/_lua_builtins.py
parent718c552901d703c502ccbefdfc3c9028d608b947 (diff)
downloadydb-2d37894b1b037cf24231090eda8589bbb44fb6fc.tar.gz
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/python/Pygments/py3/pygments/lexers/_lua_builtins.py')
-rw-r--r--contrib/python/Pygments/py3/pygments/lexers/_lua_builtins.py134
1 files changed, 67 insertions, 67 deletions
diff --git a/contrib/python/Pygments/py3/pygments/lexers/_lua_builtins.py b/contrib/python/Pygments/py3/pygments/lexers/_lua_builtins.py
index 21993f2986..f6a9b796ee 100644
--- a/contrib/python/Pygments/py3/pygments/lexers/_lua_builtins.py
+++ b/contrib/python/Pygments/py3/pygments/lexers/_lua_builtins.py
@@ -28,7 +28,7 @@ MODULES = {'basic': ('_G',
'print',
'rawequal',
'rawget',
- 'rawlen',
+ 'rawlen',
'rawset',
'select',
'setmetatable',
@@ -36,20 +36,20 @@ MODULES = {'basic': ('_G',
'tostring',
'type',
'xpcall'),
- 'bit32': ('bit32.arshift',
- 'bit32.band',
- 'bit32.bnot',
- 'bit32.bor',
- 'bit32.btest',
- 'bit32.bxor',
- 'bit32.extract',
- 'bit32.lrotate',
- 'bit32.lshift',
- 'bit32.replace',
- 'bit32.rrotate',
- 'bit32.rshift'),
+ 'bit32': ('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': ('coroutine.create',
- 'coroutine.isyieldable',
+ 'coroutine.isyieldable',
'coroutine.resume',
'coroutine.running',
'coroutine.status',
@@ -62,15 +62,15 @@ MODULES = {'basic': ('_G',
'debug.getmetatable',
'debug.getregistry',
'debug.getupvalue',
- 'debug.getuservalue',
+ 'debug.getuservalue',
'debug.sethook',
'debug.setlocal',
'debug.setmetatable',
'debug.setupvalue',
- 'debug.setuservalue',
- 'debug.traceback',
- 'debug.upvalueid',
- 'debug.upvaluejoin'),
+ 'debug.setuservalue',
+ 'debug.traceback',
+ 'debug.upvalueid',
+ 'debug.upvaluejoin'),
'io': ('io.close',
'io.flush',
'io.input',
@@ -79,19 +79,19 @@ MODULES = {'basic': ('_G',
'io.output',
'io.popen',
'io.read',
- 'io.stderr',
- 'io.stdin',
- 'io.stdout',
+ 'io.stderr',
+ 'io.stdin',
+ 'io.stdout',
'io.tmpfile',
'io.type',
'io.write'),
'math': ('math.abs',
'math.acos',
'math.asin',
- 'math.atan',
+ 'math.atan',
'math.atan2',
'math.ceil',
- 'math.cos',
+ 'math.cos',
'math.cosh',
'math.deg',
'math.exp',
@@ -102,32 +102,32 @@ MODULES = {'basic': ('_G',
'math.ldexp',
'math.log',
'math.max',
- 'math.maxinteger',
+ 'math.maxinteger',
'math.min',
- 'math.mininteger',
+ 'math.mininteger',
'math.modf',
'math.pi',
'math.pow',
'math.rad',
'math.random',
'math.randomseed',
- 'math.sin',
+ 'math.sin',
'math.sinh',
'math.sqrt',
- 'math.tan',
+ 'math.tan',
'math.tanh',
- 'math.tointeger',
- 'math.type',
- 'math.ult'),
- 'modules': ('package.config',
+ 'math.tointeger',
+ 'math.type',
+ 'math.ult'),
+ 'modules': ('package.config',
'package.cpath',
'package.loaded',
'package.loadlib',
'package.path',
'package.preload',
- 'package.searchers',
- 'package.searchpath',
- 'require'),
+ 'package.searchers',
+ 'package.searchpath',
+ 'require'),
'os': ('os.clock',
'os.date',
'os.difftime',
@@ -149,37 +149,37 @@ MODULES = {'basic': ('_G',
'string.len',
'string.lower',
'string.match',
- 'string.pack',
- 'string.packsize',
+ 'string.pack',
+ 'string.packsize',
'string.rep',
'string.reverse',
'string.sub',
- 'string.unpack',
+ 'string.unpack',
'string.upper'),
'table': ('table.concat',
'table.insert',
- 'table.move',
- 'table.pack',
+ 'table.move',
+ 'table.pack',
'table.remove',
- 'table.sort',
- 'table.unpack'),
- 'utf8': ('utf8.char',
- 'utf8.charpattern',
- 'utf8.codepoint',
- 'utf8.codes',
- 'utf8.len',
- 'utf8.offset')}
+ 'table.sort',
+ 'table.unpack'),
+ 'utf8': ('utf8.char',
+ 'utf8.charpattern',
+ 'utf8.codepoint',
+ 'utf8.codes',
+ 'utf8.len',
+ 'utf8.offset')}
if __name__ == '__main__': # pragma: no cover
import re
- import sys
-
- # urllib ends up wanting to import a module called 'math' -- if
- # pygments/lexers is in the path, this ends badly.
- for i in range(len(sys.path)-1, -1, -1):
- if sys.path[i].endswith('/lexers'):
- del sys.path[i]
-
+ import sys
+
+ # urllib ends up wanting to import a module called 'math' -- if
+ # pygments/lexers is in the path, this ends badly.
+ for i in range(len(sys.path)-1, -1, -1):
+ if sys.path[i].endswith('/lexers'):
+ del sys.path[i]
+
try:
from urllib import urlopen
except ImportError:
@@ -230,7 +230,7 @@ if __name__ == '__main__': # pragma: no cover
def get_newest_version():
f = urlopen('http://www.lua.org/manual/')
- r = re.compile(r'^<A HREF="(\d\.\d)/">(Lua )?\1</A>')
+ r = re.compile(r'^<A HREF="(\d\.\d)/">(Lua )?\1</A>')
for line in f:
m = r.match(line)
if m is not None:
@@ -238,7 +238,7 @@ if __name__ == '__main__': # pragma: no cover
def get_lua_functions(version):
f = urlopen('http://www.lua.org/manual/%s/' % version)
- r = re.compile(r'^<A HREF="manual.html#pdf-(?!lua|LUA)([^:]+)">\1</A>')
+ r = re.compile(r'^<A HREF="manual.html#pdf-(?!lua|LUA)([^:]+)">\1</A>')
functions = []
for line in f:
m = r.match(line)
@@ -270,16 +270,16 @@ if __name__ == '__main__': # pragma: no cover
def run():
version = get_newest_version()
- functions = set()
- for v in ('5.2', version):
- print('> Downloading function index for Lua %s' % v)
- f = get_lua_functions(v)
- print('> %d functions found, %d new:' %
- (len(f), len(set(f) - functions)))
- functions |= set(f)
+ functions = set()
+ for v in ('5.2', version):
+ print('> Downloading function index for Lua %s' % v)
+ f = get_lua_functions(v)
+ print('> %d functions found, %d new:' %
+ (len(f), len(set(f) - functions)))
+ functions |= set(f)
+
+ functions = sorted(functions)
- functions = sorted(functions)
-
modules = {}
for full_function_name in functions:
print('>> %s' % full_function_name)