diff options
author | kdx <kikoodx@paranoici.org> | 2023-08-26 15:05:12 +0200 |
---|---|---|
committer | kdx <kikoodx@paranoici.org> | 2023-08-26 15:05:12 +0200 |
commit | 07f9061b1287212cca8bdea2f07b7262e6d079b7 (patch) | |
tree | 2b3ae941f16349020615941d4142daba7163b382 /src | |
parent | 3edf6c7c39dea9155f4a34ae8f5091d2a40a2462 (diff) | |
download | golem-07f9061b1287212cca8bdea2f07b7262e6d079b7.tar.gz |
small string shortend
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -243,6 +243,15 @@ tokenize(char *p) continue; } + if (*p == '`') { + char *q = p; + p += 1; + while (isalnum(*p) || *p == '_') + p += 1; + cur = cur->next = new_token(TOK_STRING, q, p + 1); + continue; + } + if (*p == '\'' && p[1] != '\'') { char *q = p; const int c = escaped_char(p + 1, &p); |