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
Sometimes, it's useful to split up arrays over multiple lines. I ran into a disappointing parse with this. Here's my best attempt at an SSCCE:
Breaks:
a=->foo= [
3
]
bar= baz
Works (but not my preference):
a=->foo= [
3
]
bar= baz
Also Works (really really weird, all I did is dedent the body by two spaces):
a=->foo= [
3
]
bar= baz
The first one puts the last line (bar = baz) outside the function, which is baffling because it's at the same indent level as the previous start of a line. The others do not.
If I leave out the first line, the bar = baz line just vanishes from the compiled output completely. This is especially bad.
The text was updated successfully, but these errors were encountered:
Could you point me to a specific one? I tried to search, but didn't find anything about coffeescript totally ignoring entire lines/blocks of code because of indentation. Also, this hardly seems like it's "too forgiving".
Sometimes, it's useful to split up arrays over multiple lines. I ran into a disappointing parse with this. Here's my best attempt at an SSCCE:
Breaks:
Works (but not my preference):
Also Works (really really weird, all I did is dedent the body by two spaces):
The first one puts the last line (
bar = baz
) outside the function, which is baffling because it's at the same indent level as the previous start of a line. The others do not.If I leave out the first line, the
bar = baz
line just vanishes from the compiled output completely. This is especially bad.The text was updated successfully, but these errors were encountered: