eric6/ThirdParty/Pygments/pygments/lexers/_lua_builtins.py

changeset 7547
21b0534faebc
parent 6942
2602857055c5
child 7701
25f42e208e08
equal deleted inserted replaced
7546:bf5f777260a6 7547:21b0534faebc
7 It is able to re-generate itself, but for adding new functions you 7 It is able to re-generate itself, but for adding new functions you
8 probably have to add some callbacks (see function module_callbacks). 8 probably have to add some callbacks (see function module_callbacks).
9 9
10 Do not edit the MODULES dict by hand. 10 Do not edit the MODULES dict by hand.
11 11
12 :copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS. 12 :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS.
13 :license: BSD, see LICENSE for details. 13 :license: BSD, see LICENSE for details.
14 """ 14 """
15
16 from __future__ import print_function
17 15
18 MODULES = {'basic': ('_G', 16 MODULES = {'basic': ('_G',
19 '_VERSION', 17 '_VERSION',
20 'assert', 18 'assert',
21 'collectgarbage', 19 'collectgarbage',
286 modules = {} 284 modules = {}
287 for full_function_name in functions: 285 for full_function_name in functions:
288 print('>> %s' % full_function_name) 286 print('>> %s' % full_function_name)
289 m = get_function_module(full_function_name) 287 m = get_function_module(full_function_name)
290 modules.setdefault(m, []).append(full_function_name) 288 modules.setdefault(m, []).append(full_function_name)
291 modules = dict((k, tuple(v)) for k, v in modules.iteritems()) 289 modules = {k: tuple(v) for k, v in modules.items()}
292 290
293 regenerate(__file__, modules) 291 regenerate(__file__, modules)
294 292
295 run() 293 run()

eric ide

mercurial