quote fix in syntax

This commit is contained in:
gazhonsepaskwa
2025-02-18 11:38:04 +01:00
parent 588db5280f
commit c7aabe7938
3 changed files with 19 additions and 12 deletions

View File

@@ -59,9 +59,9 @@ int unclosed(t_node *head)
{
if (check_unclosed("()", head) != 0)
return (syntax_err_mess("()", check_unclosed("()", head)));
if (check_unclosed_quote("\"", head) != 0)
if (check_unclosed_quote("\"", head))
return (syntax_err_mess("\"\"", 1));
if (check_unclosed_quote("'", head) != 0)
if (check_unclosed_quote("'", head))
return (syntax_err_mess("'", 1));
return (0);
}