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 ["prop"] syntax on class declarations #702

Closed
JohnnyMorganz opened this issue Oct 12, 2022 · 0 comments · Fixed by #704
Closed

Support ["prop"] syntax on class declarations #702

JohnnyMorganz opened this issue Oct 12, 2022 · 0 comments · Fixed by #704
Labels
enhancement New feature or request

Comments

@JohnnyMorganz
Copy link
Contributor

For properties which are not valid identifiers

declare class Foo
    ["a property"]: string
end
@JohnnyMorganz JohnnyMorganz added the enhancement New feature or request label Oct 12, 2022
AmaranthineCodices pushed a commit that referenced this issue Oct 18, 2022
Some classes have properties which are not valid identifiers (such as
https://create.roblox.com/docs/reference/engine/classes/Studio)

This adds support for the following syntax in definition files:
```lua
declare class Foo
    ["a property"]: string
end
```

Closes #702
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging a pull request may close this issue.

1 participant