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
The current behavior (pointed out by a user) could lead users to write buggy code, because it seems like the indented code is executed "within" the do, but it isn't. (Unlike e.g. if the do was followed by -> as is usual.)
Environment
CoffeeScript version: 2.7.0
Node.js version: 19.9.0
The text was updated successfully, but these errors were encountered:
Bug report (minor)
Input Code
Expected Behavior
Compilation error: unexpected indentation of
indented
on line 3Current Behavior
Analysis
The token stream incorrectly has no
DEDENT
token:[IDENTIFIER foo] [= =] [DO do] [IDENTIFIER bar] [= =] [IDENTIFIER getBar] [CALL_START (] [CALL_END )] [TERMINATOR \n] [IDENTIFIER indented] [TERMINATOR \n] [IDENTIFIER notIndented] [TERMINATOR \n]
Hopefully not too hard a fix...
Context
The current behavior (pointed out by a user) could lead users to write buggy code, because it seems like the indented code is executed "within" the
do
, but it isn't. (Unlike e.g. if thedo
was followed by->
as is usual.)Environment
The text was updated successfully, but these errors were encountered: