tb Fix string tokenization bug (bad classification)

This commit is contained in:
2025-09-29 22:58:40 +02:00
parent 0fb63b4695
commit 10711f7fb3

View File

@ -58,7 +58,7 @@ void tz_tokenize(Tokenizer *tz) {
void tz_classify(Tokenizer *tz) {
Token *tk, *tktmp;
LL_FOREACH_SAFE(tz->tokens, tk, tktmp) {
if (tk->str[0] == '"') {
if (tk->str[0] == '\'') {
tk->type = TOK_STRING;
} else if (tk->str[0] == '%') {
RtCmd *cmd, *cmdtmp;