commit bb793a2fff21b3b3cc57efac43a4addfd5170685
parent 692537ecd044628cde7f9c3569ba80caa61efde8
Author: Brian Swetland <swetland@frotz.net>
Date: Fri, 20 Oct 2023 19:51:57 -0700
compiler1: fix >>=, |=, etc lexing
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/compiler/lexer.spl b/compiler/lexer.spl
@@ -295,7 +295,7 @@ fn _next() Token {
}
// if we're an AddOp or MulOp, followed by an '='
- if ((tok & 0xF0) == 0x20) && (nc == '=') {
+ if ((tok & 0xF0) == 0x10) && (nc == '=') {
nc = scan();
// transform us to a XEQ operation
tok = tok + 0x10;