Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

properly diagnose missing assignop on s[]

  • Loading branch information...
commit bcb3aa60af84552b518490414e3814436ada6a6d 1 parent a426055
@TimToady TimToady authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 STD.pm6
View
4 STD.pm6
@@ -2579,9 +2579,9 @@ grammar P6 is STD {
<.ws>
[ <?[ \[ \{ \( \< ]> <.obs('brackets around replacement', 'assignment syntax')> ]?
[ <infixish> || <panic: "Missing assignment operator"> ]
- [ <?{ $<infixish>.Str eq '=' || $<infixish>.<infix_postfix_meta_operator> }> || <.panic: "Malformed assignment operator"> ]
+ [ <?{ $<infixish>.Str eq '=' || $<infixish>.<infix_postfix_meta_operator> }>.Str eq '=' || <.panic: "Malformed assignment operator"> ]
<.ws>
- <right=EXPR(item %item_assignment)>
+ [ <right=EXPR(item %item_assignment)> || <.panic: "Assignment operator missing its expression"> ]
||
{ $lang = $lang2.unbalanced($stop); }
<right=.nibble($lang)> $stop || <.panic: "Malformed replacement part; couldn't find final $stop">
Please sign in to comment.
Something went wrong with that request. Please try again.