Fix tokenizing for %%

This commit is contained in:
gingerBill
2020-05-27 18:41:10 +01:00
parent e84406a895
commit 237962182b

View File

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