From eed9e4e7b9baefc6b5b0aefa696966155686ff5e Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Tue, 30 Aug 2022 01:35:40 -0400 Subject: [PATCH] Bit shift assignment tokens now have correct width --- lexer/lexer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lexer/lexer.go b/lexer/lexer.go index 0de6031..3109252 100644 --- a/lexer/lexer.go +++ b/lexer/lexer.go @@ -290,7 +290,7 @@ func (lexer *LexingOperation) tokenizeSymbolBeginning () (err error) { if lexer.char == '=' { token.kind = TokenKindLShiftAssignment err = lexer.nextRune() - token.location.SetWidth(2) + token.location.SetWidth(3) } } else if lexer.char == '=' { token.kind = TokenKindLessThanEqualTo @@ -310,7 +310,7 @@ func (lexer *LexingOperation) tokenizeSymbolBeginning () (err error) { if lexer.char == '=' { token.kind = TokenKindRShiftAssignment err = lexer.nextRune() - token.location.SetWidth(2) + token.location.SetWidth(3) } } else if lexer.char == '=' { token.kind = TokenKindGreaterThanEqualTo