shithub: scc

Download patch

ref: a0e34a8b86c340b8b3517c6dbdcde1de8c8ca39a
parent: c959ddb9017bc8288fc444d80840f1ae61aa6ca7
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Tue Nov 16 16:25:25 EST 2021

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

This operator was lost in the code of the lexer.

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