Skip to content

Commit

Permalink
enable rx{...} quoting form. At some point we need a more general sol…
Browse files Browse the repository at this point in the history
…ution for these quoting mechanismsn...
  • Loading branch information
moritz committed Apr 29, 2010
1 parent e16cf45 commit fe59fa8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Perl6/Grammar.pm
Expand Up @@ -1298,7 +1298,13 @@ token quote:sym<Q> { 'Q' <![(]> <.ws> <quote_EXPR> }
token quote:sym<Q:PIR> { 'Q:PIR' <.ws> <quote_EXPR> }
token quote:sym</null/> { '/' \s* '/' <.panic: "Null regex not allowed"> }
token quote:sym</ /> { '/'<p6regex=.LANG('Regex','nibbler')>'/' <.old_rx_mods>? }
token quote:sym<rx> { <sym> >> '/'<p6regex=.LANG('Regex','nibbler')>'/' <.old_rx_mods>? }
token quote:sym<rx> {
<sym> >>
[
| '/'<p6regex=.LANG('Regex','nibbler')>'/' <.old_rx_mods>?
| '{'<p6regex=.LANG('Regex','nibbler')>'}' <.old_rx_mods>?
]
}
token quote:sym<m> {
<sym> >>
[
Expand Down

0 comments on commit fe59fa8

Please sign in to comment.