summaryrefslogtreecommitdiff
path: root/perly.y
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2017-11-16 09:23:53 +0000
committerDavid Mitchell <davem@iabyn.com>2017-11-16 09:32:26 +0000
commit3f5e95437092ccddc2436cb7a9ec1cad9e1e8f5d (patch)
tree4ade4860d678092b40fe1d2e44626eaf2b1735f6 /perly.y
parente923f3dcea8f38db48b7b02079de0d1177b08d83 (diff)
downloadperl-3f5e95437092ccddc2436cb7a9ec1cad9e1e8f5d.tar.gz
expand code comment in perly.y
ASSIGNOP includes mutators like += as well as basic assignment NPD
Diffstat (limited to 'perly.y')
-rw-r--r--perly.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/perly.y b/perly.y
index 0a7c30c042..8f3e303af1 100644
--- a/perly.y
+++ b/perly.y
@@ -962,7 +962,7 @@ subscripted: gelem '{' expr ';' '}' /* *main::{something} */
;
/* Binary operators between terms */
-termbinop: term ASSIGNOP term /* $x = $y */
+termbinop: term ASSIGNOP term /* $x = $y, $x += $y */
{ $$ = newASSIGNOP(OPf_STACKED, $1, $2, $3); }
| term POWOP term /* $x ** $y */
{ $$ = newBINOP($2, 0, scalar($1), scalar($3)); }