Skip to content

Add support for 'luau' file extension - #593

Merged
asottile merged 1 commit into
pre-commit:mainfrom
NinjaMandalorian:main
Sep 26, 2026
Merged

asottile merged 1 commit into
pre-commit:mainfrom
NinjaMandalorian:main

Conversation

@NinjaMandalorian

Copy link
Copy Markdown
Contributor

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

NinjaMandalorian commented May 11, 2026 •

Copy link
Copy Markdown
Contributor Author

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.

@asottile asottile left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@asottile
asottile enabled auto-merge September 26, 2026 20:12
@asottile
asottile merged commit c75a0a2 into pre-commit:main Sep 26, 2026
6 checks passed
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