Skip to content

Commit

Permalink
fix: Fix escape char in string literals
Browse files Browse the repository at this point in the history
  • Loading branch information
keyvank committed Nov 28, 2024
1 parent d9ffaff commit e469311
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lexer.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,10 @@ typed_token *next_op(char **inp_ptr, int is_newline)
{
c = '\n';
}
else
{
c = *inp;
}
}
val[sz] = c;
sz++;
Expand Down

0 comments on commit e469311

Please sign in to comment.