mixed case strings in scheduler, #2457

This commit is contained in:
MichaelDvP
2025-03-11 07:33:23 +01:00
parent c2f718b49a
commit f2b81489ba
3 changed files with 7 additions and 3 deletions

View File

@@ -96,9 +96,9 @@ std::deque<Token> exprToTokens(const std::string & expr) {
} else if (strncmp(p, "hex", 3) == 0) {
p += 2;
tokens.emplace_back(Token::Type::Unary, "h", 5);
} else if (*p >= 'a' && *p <= 'z') {
} else if ((*p >= 'a' && *p <= 'z') || (*p >= 'A' && *p <= 'Z')) {
const auto * b = p;
while ((*p >= 'a' && *p <= 'z') || (*p == '_')) {
while ((*p >= 'a' && *p <= 'z') || (*p >= 'A' && *p <= 'Z') || (*p == '_') || (*p > 127)) {
++p;
}
const auto s = std::string(b, p);