diff --git a/src/lexer/lexer.c b/src/lexer/lexer.c index 083edb27..14d9bee0 100644 --- a/src/lexer/lexer.c +++ b/src/lexer/lexer.c @@ -191,7 +191,8 @@ struct token parse_input_for_tok(struct lexer *lexer) bool is_diactivated = false; - while (lexer->data[lexer->index] == ' ') + while (lexer->data[lexer->index] == ' ' + || lexer->data[lexer->index] == '\t') { ++lexer->index; } diff --git a/src/parser/parser.c b/src/parser/parser.c index 31c065ea..c593d49d 100644 --- a/src/parser/parser.c +++ b/src/parser/parser.c @@ -84,8 +84,8 @@ int parser_loop(struct lexer *lexer, bool logger_enabled, if (return_value != 0 && return_value != 1) { fprintf(stderr, "Error while executing\n"); - ast_free(ast); - return return_value; + // ast_free(ast); + // return return_value; } ast_free(ast); } diff --git a/tests/error/error_syntax/testsuite.sh b/tests/error/error_syntax/testsuite.sh index 9636b3d9..d05d7a2b 100644 --- a/tests/error/error_syntax/testsuite.sh +++ b/tests/error/error_syntax/testsuite.sh @@ -10,4 +10,4 @@ run_test error_syntax9.test run_test error_syntax10.test run_test error_syntax11.test run_test error_syntax12.test -run_test error_syntax13.test \ No newline at end of file +run_test error_syntax13.test