summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorkdx <kikoodx@paranoici.org>2023-08-26 15:05:12 +0200
committerkdx <kikoodx@paranoici.org>2023-08-26 15:05:12 +0200
commit07f9061b1287212cca8bdea2f07b7262e6d079b7 (patch)
tree2b3ae941f16349020615941d4142daba7163b382 /src
parent3edf6c7c39dea9155f4a34ae8f5091d2a40a2462 (diff)
downloadgolem-07f9061b1287212cca8bdea2f07b7262e6d079b7.tar.gz
small string shortend
Diffstat (limited to 'src')
-rw-r--r--src/main.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index a022d75..94dae81 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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);