From 66739336e7358188ee7828d311881e06b2f3ad83 Mon Sep 17 00:00:00 2001 From: A404M Date: Thu, 19 Sep 2024 06:26:42 +0330 Subject: fixed an error in strings fixed error in parenthesis some code clean up --- src/compiler/lexer/lexer.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/compiler/lexer/lexer.c') 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); -- cgit v1.2.3