Skip to content

Add support for 'luau' file extension#593

Open
NinjaMandalorian wants to merge 2 commits into
pre-commit:mainfrom
NinjaMandalorian:main
Open

Add support for 'luau' file extension#593
NinjaMandalorian wants to merge 2 commits into
pre-commit:mainfrom
NinjaMandalorian:main

Conversation

@NinjaMandalorian
Copy link
Copy Markdown

Adds support for the .luau file extension, a filetype used most commonly around the Roblox ecosystem, as well as some standalone runtimes.

Hooks created for pre-commit (like StyLua's from 5 years ago) are aimed at the "lua" type. Adding this allows for backwards compatibility.

@asottile
Copy link
Copy Markdown
Member

hmm it seems to me that luau is a superset of lua so I'm not sure it makes sense to tag it as lua (since a luau file may use features not expected by a tool targetting lua)

@NinjaMandalorian
Copy link
Copy Markdown
Author

NinjaMandalorian commented May 11, 2026

hmm it seems to me that luau is a superset of lua so I'm not sure it makes sense to tag it as lua (since a luau file may use features not expected by a tool targetting lua)

From my understanding, the deviation is more around adding typing, as luau is fully compatible with Lua 5.1, and does inherit features from future versions, albeit not fully.

I'll edit the PR either way to remove lua due to these differences.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants