Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix {} in regexes
  • Loading branch information
sorear committed Oct 20, 2011
1 parent a2beb89 commit 3da8e40
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/niecza
Expand Up @@ -49,6 +49,15 @@ augment class Op::CallMethod {
}

augment class NieczaActions {
method metachar:sym<{ }> ($/) {
$/.CURSOR.trymop({
$<embeddedblock>.ast.add_my_name('$¢', :noinit, |mnode($/));
$<embeddedblock>.ast.set_signature(Sig.simple('$¢'));
});

make ::RxOp::VoidBlock.new(block => self.inliney_call($/,
$<embeddedblock>.ast, ::Op::MakeCursor.new(|node($/))));
}
method method_def_2 ($, $/ = $*cursor) {
if $<multisig> > 1 {
$/.CURSOR.sorry("You may only use *one* signature");
Expand Down

0 comments on commit 3da8e40

Please sign in to comment.