Skip to content

Commit

Permalink
add modulo as operation in assign
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-rubio committed Mar 3, 2016
1 parent bbbfd97 commit 114dd8a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ephp_parser.peg
Original file line number Diff line number Diff line change
Expand Up @@ -717,12 +717,13 @@ mono_logic <- '~' ~;
mono_aritmetic <- '++' / '--' ~;
comparator <- xeq / leq / eq / ne / xne / geq / gt / lt / instanceof ~;

assign_op <- assign_plus / assign_minus / assign_mul / assign_div ~;
assign_op <- assign_plus / assign_minus / assign_mul / assign_div / assign_mod ~;

assign_plus <- '+=' `<<"+">>`;
assign_minus <- '-=' `<<"-">>`;
assign_mul <- '*=' `<<"*">>`;
assign_div <- '/=' `<<"/">>`;
assign_mod <- '%=' `<<"%">>`;

eq <- '==' ~;
xeq <- '===' ~;
Expand Down

0 comments on commit 114dd8a

Please sign in to comment.