Skip to content

Commit

Permalink
fix: Escape tab chars
Browse files Browse the repository at this point in the history
  • Loading branch information
keyvank committed Dec 3, 2024
1 parent d10cb24 commit dcf1da5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lexer.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,10 @@ typed_token *next_op(char **inp_ptr, int is_newline)
{
*ch = '\n';
}
else if (e == 't')
{
*ch = '\t';
}
else if (e == '0')
{
*ch = '\0';
Expand Down Expand Up @@ -338,6 +342,10 @@ typed_token *next_op(char **inp_ptr, int is_newline)
{
c = '\n';
}
else if (*inp == 't')
{
c = '\t';
}
else
{
c = *inp;
Expand Down

0 comments on commit dcf1da5

Please sign in to comment.