Parsing fails when a type
declaration includes a goto
key.
#703
Labels
duplicate
This issue or pull request already exists
type
declaration includes a goto
key.
#703
The following code:
Fails to be formatted with the following error:
Could not format file: error: could not format from stdin: failed to format from stdin: error parsing: error occurred while creating ast: unexpected token `goto`. (starting from line 2, character 5 and ending on line 2, character 9) additional information: expected `}` to match `{`
This is easily resolved by naming the field
go_to
instead (although not desirable). The code is perfectly valid syntax and works fine in the Roblox IDE.I'm using the version currently available on VSCode marketplace.
The text was updated successfully, but these errors were encountered: