Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add :temp %*RX; to quote:rx, quote:m, etc.
  • Loading branch information
colomon committed Mar 5, 2013
1 parent 2e5a010 commit 2a7e0fd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/STD.pm6
Expand Up @@ -2567,35 +2567,41 @@ grammar P6 is STD {
token quote_mod:b { <sym> }

token quote:rx {
:temp %*RX;
<sym> » <!before '('>
<quibble( $¢.cursor_fresh( %*LANG<Regex> ) )>
<!old_rx_mods>
}

token quote:m {
:temp %*RX;
<sym> » <!before '('>
<quibble( $¢.cursor_fresh( %*LANG<Regex> ) )>
<!old_rx_mods>
}

token quote:ms {
:temp %*RX;
<sym> » <!before '('>
<quibble( $¢.cursor_fresh( %*LANG<Regex> ).tweak(:s))>
<!old_rx_mods>
}

token quote:s {
:temp %*RX;
<sym> » <!before '('>
<pat=.sibble( $¢.cursor_fresh( %*LANG<Regex> ), $¢.cursor_fresh( %*LANG<Q> ).tweak(:qq))>
<!old_rx_mods>
}

token quote:ss {
:temp %*RX;
<sym> » <!before '('>
<pat=.sibble( $¢.cursor_fresh( %*LANG<Regex> ).tweak(:s), $¢.cursor_fresh( %*LANG<Q> ).tweak(:qq))>
<!old_rx_mods>
}
token quote:tr {
:temp %*RX;
<sym> » <!before '('> <pat=.tribble( $¢.cursor_fresh( %*LANG<Q> ).tweak(:cc))>
<!old_tr_mods>
}
Expand Down

0 comments on commit 2a7e0fd

Please sign in to comment.