Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Parse current protoregex syntax; keep older deprecated ones for now, …
…though we'll put a warning in the next * release about them.
  • Loading branch information
jnthn committed Nov 16, 2011
1 parent 8f1f5d1 commit 88f6945
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Perl6/Grammar.pm
Expand Up @@ -1643,7 +1643,9 @@ grammar Perl6::Grammar is HLL::Grammar {
<deflongname>?
<.newpad>
[ [ ':'?'(' <signature> ')'] | <trait> ]*
'{'[ '<...>' |<p6regex=.LANG('Regex','nibbler')>]'}'<?ENDSTMT>
'{'[
| ['*'|'<...>'|'<*>'] <?{ $*MULTINESS eq 'proto' }> $<onlystar>={1}
|<p6regex=.LANG('Regex','nibbler')>]'}'<?ENDSTMT>
{ $*CURPAD := $*ST.pop_lexpad() }
] || <.panic: "Malformed regex">
] }
Expand Down

0 comments on commit 88f6945

Please sign in to comment.