← 返回首页
Add support for 'luau' file extension by NinjaMandalorian · Pull Request #593 · pre-commit/identify · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

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

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.

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)

Copy link
Copy Markdown
Author

NinjaMandalorian commented May 11, 2026
edited
Loading

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.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Footer

© 2026 GitHub, Inc.