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
{{ message }}
This repository has been archived by the owner on Oct 19, 2021. It is now read-only.
Unfortunately this is due to CoffeeScript's parser. It does not return an INDENT token for b statement, rather it gives an OUTDENT token.
Since spacing of 1 space is allowed in CoffeeScript, it assumes you are indenting by one space, and that the b statement is just a outdent of 1, rather than an indentation of 1 (which would trigger inconsistent indentation rule)
I will try to take a look at this bug, as it may be easier to catch than the other INDENT issues we've had. Thanks for the report.
Hello. Basically what is happening can probably be explained in this issue jashkenas/coffeescript#3998. I don't know if this is really fixable without getting some help from the CoffeeScript developers.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Why does this trigger the inconsistent indentation error
(expected 2, got 1)
:-> a b
...but this does not?
-> a b
The second is actually far worse, since it compiles to valid but unexpected JS:
I'm running the newest version, 1.10.1.
The text was updated successfully, but these errors were encountered: