Skip to content

Commit

Permalink
fixed issue with splitting / char
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminHThomas committed Jul 15, 2024
1 parent ba77319 commit f3015e7
Showing 1 changed file with 2 additions and 2 deletions.
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/12 16:32:29 by bthomas ### ########.fr */
/* Updated: 2024/07/15 10:53:53 by bthomas ### ########.fr */
/* */
/* ************************************************************************** */

Expand Down Expand Up @@ -46,7 +46,7 @@ static t_token *build_tokenlist2(t_data *data, size_t input_len, size_t *i)
curr_tk = get_token(data, ft_strdup("$?"), NULL, TK_EXITSTATUS);
else if (data->input[*i] == '$' && data->input[*i + 1])
curr_tk = get_path_tk(data, data->input, *i);
else if (in(data->input[*i], "-+=/%*"))
else if (in(data->input[*i], "="))
curr_tk = get_token(data, ft_substr(data->input, *i, 1),
NULL, TK_OPERATOR);
else
Expand Down

0 comments on commit f3015e7

Please sign in to comment.