Skip to content

Conversation

@JohnnyMorganz
Copy link
Collaborator

Supports the parsing of Luau function attributes, such as @native or @checked. Does not perform any validation on the name of attributes, unlike Luau.

Unfortunately, due to the existing Attribute struct for Lua 5.4 <const> attributes, we have to name the struct LuauAttribute.

[BREAKING CHANGE]: Because attributes can be attached to anonymous functions, we create a new AnonymousFunction struct to handle this. This replaces the old Box<(TokenReference, FunctionBody)>.

Closes #336

@jok-dev
Copy link

jok-dev commented Feb 14, 2025

Would be great if this could be merged.

@JohnnyMorganz JohnnyMorganz merged commit 7dc4b78 into main Apr 21, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support parsing function attributes

3 participants