-
Notifications
You must be signed in to change notification settings - Fork 85
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
Add support for struct literal using square brackets #534
Comments
ACF2016 also supports this syntax. |
Also, be sure to consider the empty ordered struct literals: |
Depends on cfparser/cfparser#124 |
fixed with cfparser 2.10.0. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Lucee supports the use of square brackets as opposed to curly brackets when defining a struct literal. This creates an ordered structure and preserves the order of the keys. Currently the CFLint parser sees this as incorrect synatx and flags it as an error. I propose support be added for this syntax. Here's an example of some code that produces this error:
var orderedStruct = [ keyA: 'value', keyB: 'value' ]
The text was updated successfully, but these errors were encountered: