Fix tokenization
This commit is contained in:
1 parent
237962182b
commit
1f31d573e4
1 file changed
+1
@@ -1064,6 +1064,7 @@ void tokenizer_get_token(Tokenizer *t, Token *token) {
|
|||||||
case '%':
|
case '%':
|
||||||
token->kind = Token_Mod;
|
token->kind = Token_Mod;
|
||||||
if (t->curr_rune == '=') {
|
if (t->curr_rune == '=') {
|
||||||
|
advance_to_next_rune(t);
|
||||||
token->kind = Token_ModEq;
|
token->kind = Token_ModEq;
|
||||||
} else if (t->curr_rune == '%') {
|
} else if (t->curr_rune == '%') {
|
||||||
token->kind = Token_ModMod;
|
token->kind = Token_ModMod;
|
||||||
|
|||||||
Reference in new issue
Block a user