FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add support for 'luau' file extension by NinjaMandalorian · Pull Request #593 · pre-commit/identify · GitHub

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)

NinjaMandalorian commented May 11, 2026
edited
Loading

Copy link
Copy Markdown
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.

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


Back | FazBrowse Home | New Git URL