Skip to content

Commit

Permalink
<statementlist>, not <EXPR>
Browse files Browse the repository at this point in the history
Much better. moritz++

    $ ./perl6 -e 'say "OH HAI"; my $a; {{{say "woot!"; $a}}}'
    OH HAI
    woot!

    $ ./perl6 -e 'say "OH HAI"; my $a; quasi { say "woo!"; {{{$a}}} }'
    OH HAI
  • Loading branch information
Carl Masak committed Aug 25, 2012
1 parent 1b9b70b commit 30c0302
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Perl6/Grammar.pm
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,7 @@ grammar Perl6::Grammar is HLL::Grammar {
token term:sym<lambda> { <?lambda> <pblock> }
token term:sym<type_declarator> { <type_declarator> }
token term:sym<value> { <value> }
token term:sym<unquote> { '{{{' <?{ $*IN_QUASI }> <EXPR> '}}}' }
token term:sym<unquote> { '{{{' <?{ $*IN_QUASI }> <statementlist> '}}}' }

# XXX temporary Bool::True/Bool::False until we can get a permanent definition
token term:sym<boolean> { 'Bool::'? $<value>=[True|False] » }
Expand Down

0 comments on commit 30c0302

Please sign in to comment.