From 7e7219da26b9d256e451f8dddb66641d11f75434 Mon Sep 17 00:00:00 2001 From: nass1pro Date: Sun, 13 Sep 2020 11:02:56 +0200 Subject: update lexer + \t --- src/lexer/lexer_utils.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/lexer/lexer_utils.c') diff --git a/src/lexer/lexer_utils.c b/src/lexer/lexer_utils.c index 64a25b1..d848f95 100644 --- a/src/lexer/lexer_utils.c +++ b/src/lexer/lexer_utils.c @@ -6,7 +6,7 @@ /* By: nahaddac +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/07/16 08:18:15 by nahaddac #+# #+# */ -/* Updated: 2020/09/13 08:38:27 by nahaddac ### ########.fr */ +/* Updated: 2020/09/13 11:00:45 by nahaddac ### ########.fr */ /* */ /* ************************************************************************** */ @@ -69,7 +69,7 @@ int lexer_space(char *input) int i; i=0; - while(input[i] == ' ') + while(ft_isblank(input[i])) i++; return(i); } @@ -85,8 +85,8 @@ static int lex_check_single_quote(char *input, int i) break; ++i; } - if (input[i + 1] == ' ') - while(input[i + 1] == ' ') + if (ft_isblank(input[i + 1])) + while(ft_isblank(input[i + 1])) i++; return(i + 1); } @@ -102,8 +102,8 @@ int lexer_check_between_quote(char *input, int i) i += 1; ++i; } - if (input[i + 1] == ' ') - while(input[i + 1] == ' ') + if (ft_isblank(input[i + 1])) + while(ft_isblank(input[i + 1])) i++; return(i + 1); } -- cgit