Permalink
Browse files

[STD] special form of constant declaration didn't allow traits

git-svn-id: http://svn.pugscode.org/pugs@27482 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information...
1 parent 1158952 commit 3e1935904bfb0e1115f9e83e85b789346fa913fd lwall committed Jul 8, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 STD.pm
View
2 STD.pm
@@ -1007,7 +1007,7 @@ token constant_declarator {
:my $IN_DECL is context<rw> = 1;
:my $DECLARAND is context<rw>;
<?{ $*SCOPE eq 'constant' }>
- <identifier> <.ws> <?before '='>
+ <identifier> <.ws> <?before '='|'is'\s>
{ $*IN_DECL = 0; self.add_name($<identifier>.Str) }
<trait>*

0 comments on commit 3e19359

Please sign in to comment.