Skip to content
Browse files

allow <*> as proto regex body

  • Loading branch information...
1 parent e18bf4e commit 3090e411708a2e87eccd2297a95c54469d1127c4 @moritz moritz committed Feb 16, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/NQP/Grammar.pm
View
3 src/NQP/Grammar.pm
@@ -355,7 +355,8 @@ rule regex_declarator {
<deflongname>
[
|| '{' '<...>' '}'<?ENDSTMT>
- || <.panic: "Proto regex body must be <...>">
+ || '{' '<*>' '}'<?ENDSTMT>
+ || <.panic: "Proto regex body must be <*> (or <...>, which is deprecated)">
]
| $<sym>=[regex|token|rule]
<deflongname>

0 comments on commit 3090e41

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