Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Convert package_def to use <block> instead of <pblock>.
  • Loading branch information
pmichaud committed Nov 8, 2009
1 parent 5559916 commit ee6743c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/NQP/Actions.pm
Expand Up @@ -233,7 +233,7 @@ method package_declarator:sym<class>($/) {
}

method package_def($/) {
my $past := $<pblock> ?? $<pblock>.ast !! $<comp_unit>.ast;
my $past := $<block> ?? $<block>.ast !! $<comp_unit>.ast;
$past.namespace( $<name><identifier> );
$past.blocktype('immediate');
make $past;
Expand Down
2 changes: 1 addition & 1 deletion src/NQP/Grammar.pm
Expand Up @@ -208,7 +208,7 @@ rule package_def {
[ 'is' <parent=name> ]?
[
|| ';' <comp_unit>
|| <?[{]> <pblock>
|| <?[{]> <block>
|| <.panic: 'Malformed package declaration'>
]
}
Expand Down

0 comments on commit ee6743c

Please sign in to comment.