aboutsummaryrefslogtreecommitdiff
path: root/src/lexer
diff options
context:
space:
mode:
authornass1pro <nass1pro@gmail.com>2020-07-17 12:52:07 +0200
committernass1pro <nass1pro@gmail.com>2020-07-17 12:52:07 +0200
commit92da828004945cffb3b1112f186ed8f50da14ba7 (patch)
tree9600f2ba5686e83cfcea5a0cec8734b87542d0d4 /src/lexer
parentddcd109e6eeb3e077f581f056a83624bd6823d65 (diff)
downloadminishell-92da828004945cffb3b1112f186ed8f50da14ba7.tar.gz
minishell-92da828004945cffb3b1112f186ed8f50da14ba7.tar.bz2
minishell-92da828004945cffb3b1112f186ed8f50da14ba7.zip
escape
Please enter the commit message for your changes. Lines starting
Diffstat (limited to 'src/lexer')
-rw-r--r--src/lexer/lexer.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lexer/lexer.c b/src/lexer/lexer.c
index ca4c933..0551648 100644
--- a/src/lexer/lexer.c
+++ b/src/lexer/lexer.c
@@ -6,7 +6,7 @@
/* By: nahaddac <nahaddac@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/07/16 08:18:25 by nahaddac #+# #+# */
-/* Updated: 2020/07/17 10:18:24 by nahaddac ### ########.fr */
+/* Updated: 2020/07/17 12:45:41 by nahaddac ### ########.fr */
/* */
/* ************************************************************************** */
@@ -47,9 +47,7 @@ int check_input(char *input)
i = 0;
op = 1;
if (input[i] == '\\' && lexer_sep(input[i + 1]))
- {
i += 2;
- }
if (input[i] == '(' || input[i] == ')')
return (i + 1);
if (lexer_sep(input[i]))