-
Notifications
You must be signed in to change notification settings - Fork 2k
Extra space in array definition breaks following indentation scopes. #2341
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
Comments
Not exactly. It happens with any number greater than zero and less than the number of spaces you're using as indentation. See #1275. Closing as |
Sorry, I went through all the bug reports but didn't make the connection to this one. But actually: no, it doesn't happen with 2 spaces. Two spaces and no (EDIT) space result in exactly the same code. (not that it matters...) |
I believe you are mistaken. My previous statement is correct. Paste shell sessions if you'd like to supplement your argument. 0/3 extra spaces
1/3 extra spaces
2/3 extra spaces
3/3 extra spaces
|
With one space:
With two spaces:
|
So, you agree with me then, correct? Your comment
has been shown to be false. |
Sorry.. that was a mistake.. Two spaces and no space are exactly identical (I updated my response). The current block is only terminated in my case, when there is exactly one space. Zero and 2 spaces are the same (result in the normal expected code). 3 Spaces result in a parse error. |
This coffee script:
compiles to:
This only happens with exactly one space. Two spaces pass just fine, and more result in a syntax error.
The text was updated successfully, but these errors were encountered: