diff options
| author | gingerBill <bill@gingerbill.org> | 2020-05-27 18:41:10 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2020-05-27 18:41:10 +0100 |
| commit | 237962182b7fe57b6df242b36a0a8bbb9ce0d38b (patch) | |
| tree | 4eaa5d8cc33dfda88905d5a5084792112211af0a /src/tokenizer.cpp | |
| parent | e84406a8951b631abe3ca7c8d6859703ed06e95f (diff) | |
Fix tokenizing for `%%`
Diffstat (limited to 'src/tokenizer.cpp')
| -rw-r--r-- | src/tokenizer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tokenizer.cpp b/src/tokenizer.cpp index 6075bb9a5..52b6e3328 100644 --- a/src/tokenizer.cpp +++ b/src/tokenizer.cpp @@ -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 == '=') { |