Fix tokenization

This commit is contained in:
gingerBill
2020-05-27 18:43:02 +01:00
parent 237962182b
commit 1f31d573e4

View File

@@ -1064,6 +1064,7 @@ void tokenizer_get_token(Tokenizer *t, Token *token) {
case '%':
token->kind = Token_Mod;
if (t->curr_rune == '=') {
advance_to_next_rune(t);
token->kind = Token_ModEq;
} else if (t->curr_rune == '%') {
token->kind = Token_ModMod;