-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed #192; trailing block comments in backcalls
- Loading branch information
Showing
7 changed files
with
22 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -237,6 +237,7 @@ class exports.Block extends Node | |
# **Block** does not return its entire body, rather it | ||
# ensures that the final line is returned. | ||
makeReturn: -> | ||
@chomp! | ||
if @lines[*-1]?=makeReturn it | ||
[email protected] if that instanceof Return and not that.it | ||
this | ||
|
@@ -278,7 +279,7 @@ class exports.Block extends Node | |
|
||
# Compile to a comma-separated list of expressions. | ||
compileExpressions: (o, level) -> | ||
{lines} = this; i = -1 | ||
{lines} = @chomp!; i = -1 | ||
lines.splice i-- 1 if that.comment while lines[++i] | ||
lines.push Literal \void unless lines.length | ||
lines.0 <<< {@front}; lines[*-1] <<< {@void} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters