Skip to content

Commit

Permalink
Fix /< foo bar >/
Browse files Browse the repository at this point in the history
  • Loading branch information
sorear committed May 27, 2011
1 parent b084a1e commit 18545a8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/niecza
Expand Up @@ -58,6 +58,14 @@ augment class Op::CallMethod { #OK exist
}

augment class NieczaActions {
method metachar:qw ($/) {
my $cif = $<circumfix>.ast;
my @words = $cif.^isa(::Op::Paren) ?? @( $cif.inside.items ) !! $cif;
@words = map *.text, @words;

make ::RxOp::Alt.new(zyg => [ map { ::RxOp::String.new(text => $_,
igcase => %*RX<i>, igmark => %*RX<a>) }, @words ], dba => %*RX<dba>);
}
method dotty:sym<.*> ($/) {
if $<sym> eq '.=' {
make $<dottyop>.ast.meta_assign;
Expand Down

0 comments on commit 18545a8

Please sign in to comment.