Skip to content

Commit

Permalink
Merge pull request #2605 from funwolf7/luau
Browse files Browse the repository at this point in the history
Add Luau
  • Loading branch information
Anteru committed Feb 17, 2024
2 parents d6a0767 + 03aefb0 commit ea9629c
Show file tree
Hide file tree
Showing 9 changed files with 3,507 additions and 1 deletion.
62 changes: 62 additions & 0 deletions pygments/lexers/_luau_builtins.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
"""
pygments.lexers._luau_builtins
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Includes the builtins for Luau and Roblox.
:copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

LUAU_BUILTINS = {
'bit32',
'buffer',
'coroutine',
'debug',
'math',
'os',
'string',
'table',
'utf8',
}

ROBLOX_BUILTINS = {
'task',

'Axes',
'BrickColor',
'CatalogSearchParams',
'CFrame',
'Color3',
'ColorSequence',
'ColorSequenceKeypoint',
'DateTime',
'DockWidgetPluginGuiInfo',
'Faces',
'FloatCurveKey',
'Font',
'Instance',
'NumberRange',
'NumberSequence',
'NumberSequenceKeypoint',
'OverlapParams',
'PathWaypoint',
'PhysicalProperties',
'Random',
'Ray',
'RaycastParams',
'RaycastResult',
'RBXScriptConnection',
'RBXScriptSignal',
'Rect',
'Region3',
'Region3int16',
'SharedTable',
'TweenInfo',
'UDim',
'UDim2',
'Vector2',
'Vector2int16',
'Vector3',
'Vector3int16',
}
1 change: 1 addition & 0 deletions pygments/lexers/_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@
'LogosLexer': ('pygments.lexers.objective', 'Logos', ('logos',), ('*.x', '*.xi', '*.xm', '*.xmi'), ('text/x-logos',)),
'LogtalkLexer': ('pygments.lexers.prolog', 'Logtalk', ('logtalk',), ('*.lgt', '*.logtalk'), ('text/x-logtalk',)),
'LuaLexer': ('pygments.lexers.scripting', 'Lua', ('lua',), ('*.lua', '*.wlua'), ('text/x-lua', 'application/x-lua')),
'LuauLexer': ('pygments.lexers.scripting', 'Luau', ('luau',), ('*.luau',), ()),
'MCFunctionLexer': ('pygments.lexers.minecraft', 'MCFunction', ('mcfunction', 'mcf'), ('*.mcfunction',), ('text/mcfunction',)),
'MCSchemaLexer': ('pygments.lexers.minecraft', 'MCSchema', ('mcschema',), ('*.mcschema',), ('text/mcschema',)),
'MIMELexer': ('pygments.lexers.mime', 'MIME', ('mime',), (), ('multipart/mixed', 'multipart/related', 'multipart/alternative')),
Expand Down

0 comments on commit ea9629c

Please sign in to comment.