Skip to content

Commit

Permalink
fixed invalid char skipping
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminHThomas committed Jul 30, 2024
1 parent 8498ea3 commit a600a03
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lexer/lex_retrieve_str_tk.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: bthomas <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/07/25 10:40:12 by bthomas #+# #+# */
/* Updated: 2024/07/30 10:47:58 by bthomas ### ########.fr */
/* Updated: 2024/07/30 11:06:28 by bthomas ### ########.fr */
/* */
/* ************************************************************************** */

Expand Down
4 changes: 2 additions & 2 deletions src/lexer/lexer.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: bthomas <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/28 17:48:06 by bento #+# #+# */
/* Updated: 2024/07/30 10:47:46 by bthomas ### ########.fr */
/* Updated: 2024/07/30 11:15:39 by bthomas ### ########.fr */
/* */
/* ************************************************************************** */

Expand Down Expand Up @@ -34,7 +34,7 @@ static void skip_invalid_chars(t_data *data, size_t input_len, size_t *i)
&& !is_space(input[(*i) + 1])
&& (!ft_isalpha(input[(*i) + 1])
&& !in(input[(*i) + 1], ":/,.~^=_")))
(*i) += 1 + (1 * (!in(input[(*i) + 1], "\"\'")));
(*i) += 1 + (1 * ft_isdigit(input[*i + 1]));
else
return ;
}
Expand Down

0 comments on commit a600a03

Please sign in to comment.