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

End of line comment parse error #61

Open
joshski opened this issue Jun 27, 2015 · 2 comments
Open

End of line comment parse error #61

joshski opened this issue Jun 27, 2015 · 2 comments

Comments

@joshski
Copy link
Member

joshski commented Jun 27, 2015

This:

valid = [
  "xx" // ok
  "yy"
]

invalid = [
  "xx" // still ok
  "yy" // oh no!
]

fails with:

[Error: Parse error on line 8:
... // still ok  "yy" // oh no!]
----------------------^
Expecting ',', ':', '=', ':=', ')', ']', got '}']

Is this a bug?

@sphvn
Copy link

sphvn commented Jul 1, 2015

I'd say so. I think it seems perfectly reasonable however uncommon to use the currently invalid case.

@joshski
Copy link
Member Author

joshski commented Jul 1, 2015

Oh this is probably the same as #53

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

No branches or pull requests

2 participants