Skip to content
Browse files

allow typed \ and | in signatures without a name

  • Loading branch information...
1 parent dfff492 commit 86bc70382811cd10f2e18d4758d1ebf24bc6ac9d @moritz moritz committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Perl6/Grammar.pm
View
2 src/Perl6/Grammar.pm
@@ -1751,7 +1751,7 @@ grammar Perl6::Grammar is HLL::Grammar {
| $<quant>=['\\'|'|'] <param_var> {
pir::getstderr__P().print("Obsolete use of | or \\ with sigil on param { $<param_var> }\n")
}
- | $<quant>=['\\'|'|'] <defterm>
+ | $<quant>=['\\'|'|'] <defterm>?
| [ <param_var> | <named_param> ] $<quant>=['?'|'!'|<?>]
| <?>

0 comments on commit 86bc703

Please sign in to comment.
Something went wrong with that request. Please try again.