Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
improve message on s{foo}{bar}
  • Loading branch information
TimToady committed Feb 5, 2011
1 parent c4ade8e commit 29e9ef5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions STD.pm6
Expand Up @@ -2496,6 +2496,7 @@ grammar P6 is STD {
$start <left=.nibble($lang)> [ $stop || <.panic: "Couldn't find terminator $stop"> ]
[ <?{ $start ne $stop }>
<.ws>
[ <?[ \[ \{ \( \< ]> <.obs('brackets around replacement', 'assignment syntax')> ]?
[ <infixish> || <panic: "Missing assignment operator"> ]
[ <?{ $<infixish>.Str eq '=' || $<infixish>.<infix_postfix_meta_operator> }> || <.panic: "Malformed assignment operator"> ]
<.ws>
Expand Down

0 comments on commit 29e9ef5

Please sign in to comment.