scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit a0e34a8b86c340b8b3517c6dbdcde1de8c8ca39a
parent c959ddb9017bc8288fc444d80840f1ae61aa6ca7
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Tue, 16 Nov 2021 21:25:25 +0100

cc1: Add %= to the list of operators in the lexer

This operator was lost in the code of the lexer.

Diffstat:
Msrc/cmd/cc/cc1/lex.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/cmd/cc/cc1/lex.c b/src/cmd/cc/cc1/lex.c @@ -689,6 +689,9 @@ operator(void) case '/': t = follow('=', DIV_EQ, '/'); break; + case '%': + t = follow('=', MOD_EQ, '%'); + break; case '!': t = follow('=', NE, '!'); break;