Skip to content

Commit

Permalink
Fix RT #57876 -- if/while/unless/for/etc on line following closing brace
Browse files Browse the repository at this point in the history
  • Loading branch information
pmichaud committed Feb 28, 2009
1 parent 36314e0 commit 1e22a68
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/parser/grammar.pg
Expand Up @@ -225,14 +225,16 @@ token AT_STATEMENT_END {
token statement {
[
| <statement_control> {*} #= control
| <expr=EXPR> <.ws>
| <expr=EXPR>
[
|| <?AT_STATEMENT_END> {*} #= expr
|| <statement_mod_loop> {*} #= mod_loop
|| <statement_mod_cond> <.ws>
<statement_mod_loop>?
{*} #= mod_cond
|| {*} #= expr
]
<.ws>
| <?before ';'> {*} #= null
]
{{ $P0 = get_hll_global ['Bool'], 'False'
Expand Down

0 comments on commit 1e22a68

Please sign in to comment.