You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It used to compile just fine, but on master it seems comments cannot be the only token in a block. May have something to do with how the rewriter is adjusting them? If you put a newline just before the comment, it will compile OK.
The text was updated successfully, but these errors were encountered:
I was going to write a long explanation about how this doesn't work because comments don't affect indentation. But instead, I added a rule for TERMINATOR Commentwhich makes it so that an empty comment can be used as a valid Block in the grammar. Here's the passing test:
result: if false
# comment
else
27
ok result is 27
Run the following on coffeescript.org:
It used to compile just fine, but on master it seems comments cannot be the only token in a block. May have something to do with how the rewriter is adjusting them? If you put a newline just before the comment, it will compile OK.
The text was updated successfully, but these errors were encountered: