Fix duplicated case in tokenizer

This commit is contained in:
orosmatthew 2023-09-29 10:44:42 -04:00
parent 10b754c984
commit 4751f436fc

View File

@ -73,9 +73,6 @@ std::vector<Token> Tokenizer::tokenize()
else if (*it == '-') { else if (*it == '-') {
tokens.push_back({ .type = TokenType::minus }); tokens.push_back({ .type = TokenType::minus });
} }
else if (*it == '{') {
tokens.push_back({ .type = TokenType::left_curly });
}
else if (*it == ':') { else if (*it == ':') {
tokens.push_back({ .type = TokenType::colon }); tokens.push_back({ .type = TokenType::colon });
} }