aboutsummaryrefslogtreecommitdiff
path: root/src/compiler/lexer
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2024-09-19 06:26:42 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2024-09-19 06:26:42 +0330
commit66739336e7358188ee7828d311881e06b2f3ad83 (patch)
tree51ad82d338cb3750a6ff659c66ba7473dc5872a0 /src/compiler/lexer
parenta1283a31533c7728f073448cb8a20ea98c5cb40e (diff)
fixed an error in strings
fixed error in parenthesis some code clean up
Diffstat (limited to 'src/compiler/lexer')
-rw-r--r--src/compiler/lexer/lexer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/lexer/lexer.c b/src/compiler/lexer/lexer.c
index c216298..eee5ec3 100644
--- a/src/compiler/lexer/lexer.c
+++ b/src/compiler/lexer/lexer.c
@@ -174,6 +174,8 @@ Nodes lexer(char const *restrict str) {
const char current = str[i];
if (current == c) {
break;
+ }else if(current == '\\'){
+ ++i;
} else if (current == '\0') {
fprintf(stderr, "expected %c to end\n", c);
exit(1);