Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support parsing Luau function attributes #337

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

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

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
1 participant