Skip to content

Commit

Permalink
Merge pull request #44 from ErwannLesech/fix_lexer_tab
Browse files Browse the repository at this point in the history
fix<lexer>: add tab handling as spaces
  • Loading branch information
ErwannLesech authored Jan 13, 2024
2 parents ea0a85b + 79989da commit e9a0f98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lexer/lexer.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ char *get_word(struct lexer *lexer, bool *is_diactivated)
}
while (lexer->data[lexer->index] != ' ' && lexer->data[lexer->index] != '\0'
&& lexer->data[lexer->index] != ';'
&& lexer->data[lexer->index] != '\n')
&& lexer->data[lexer->index] != '\n'
&& lexer->data[lexer->index] != '\t')
{
word = realloc(word, sizeof(char) * (word_index + 1));
word[word_index] = lexer->data[lexer->index];
Expand Down

0 comments on commit e9a0f98

Please sign in to comment.