be more benevolent on symbol names

This commit is contained in:
2021-09-16 23:59:49 +02:00
parent 8e94a01d2d
commit 8b78ff87c9
2 changed files with 6 additions and 1 deletions

2
ml.cpp
View File

@@ -853,7 +853,7 @@ MlValue parse(std::string &s, int &ptr) {
} else if (is_symbol(s[ptr])) {
// If this is a string
int n = 0;
while (is_symbol(s[ptr + n])) {
while (is_symbol(s[ptr + n]) || isdigit(s[ptr + n])) {
n++;
}