diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-23 14:40:20 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-23 14:41:30 -0700 |
| commit | 470a6fe7f987f7c5e5c1fa7b6b31956479ababed (patch) | |
| tree | 8c25a3ae22740bfd14ecf460bfdc7d732023610f /core/control_flow.nom | |
| parent | 0d7bb7eb038d7fb986bb879112d599b2c517889c (diff) | |
Fixed blocks starting with extra newline when they start with a comment.
Diffstat (limited to 'core/control_flow.nom')
| -rw-r--r-- | core/control_flow.nom | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/core/control_flow.nom b/core/control_flow.nom index b7cdba3..1c3deaa 100644 --- a/core/control_flow.nom +++ b/core/control_flow.nom @@ -62,7 +62,6 @@ compile [..] %when_false_expr as lua expr ..) ..else: - # Otherwise, need to do an anonymous inline function (yuck, too bad lua doesn't have a proper ternary operator!) To see why this is necessary consider: (random()<.5 and false or 99) @@ -200,7 +199,6 @@ compile [..] for %var in %start to %stop by %step %body for %var in %start to %stop via %step %body ..to: - # This uses Lua's approach of only allowing loop-scoped variables in a loop unless (%var.type is "Var"): compile error at %var.source "Loop expected variable, not: %s" @@ -246,7 +244,6 @@ test: # For-each loop (lua's "ipairs()") compile [for %var in %iterable %body] to: - # This uses Lua's approach of only allowing loop-scoped variables in a loop unless (%var.type is "Var"): compile error at %var.source "Loop expected variable, not: %s" @@ -284,7 +281,6 @@ test: compile [..] for %key = %value in %iterable %body, for %key %value in %iterable %body ..to: - # This uses Lua's approach of only allowing loop-scoped variables in a loop unless (%key.type is "Var"): compile error at %key.source "Loop expected variable, not: %s" |
