diff options
author | kdx <kikoodx@paranoici.org> | 2023-12-11 02:52:35 +0100 |
---|---|---|
committer | kdx <kikoodx@paranoici.org> | 2023-12-11 02:52:35 +0100 |
commit | f511a35cbeb7096521184d9f48d809d4e2779474 (patch) | |
tree | 1a085a10913bf3591dc56cd8bf69a058039dcf5d | |
parent | b7739e97d39bd19c1e15fd3a490f3a79d60a9bbe (diff) | |
download | golem-f511a35cbeb7096521184d9f48d809d4e2779474.tar.gz |
allow dots (.) in words
-rw-r--r-- | src/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -270,9 +270,9 @@ tokenize(char *p) continue; } - if (isalpha(*p) || *p == '_') { + if (isalpha(*p) || *p == '_' || *p == '.') { char *q = p; - while (isalnum(*p) || *p == '_') + while (isalnum(*p) || *p == '_' || *p == '.') p += 1; cur = cur->next = new_token(TOK_WORD, q, p); continue; |