Skip to content

Commit

Permalink
return assumes a continuation onto the next line *if* the next line…
Browse files Browse the repository at this point in the history
… is indented
  • Loading branch information
GeoffreyBooth committed Apr 30, 2017
1 parent c287a55 commit 75f6912
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/coffeescript/lexer.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/lexer.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ exports.Lexer = class Lexer
return indent.length

if size > @indent
if noNewlines
if noNewlines or @tag() is 'RETURN'
@indebt = size - @indent
@suppressNewlines()
return indent.length
Expand Down

0 comments on commit 75f6912

Please sign in to comment.