norm on lexer_bquote

This commit is contained in:
wescande 2017-03-24 17:03:00 +01:00
parent 8c5cf94616
commit 9c60efc70c

View file

@ -6,7 +6,7 @@
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/02/09 22:03:48 by jhalford #+# #+# */
/* Updated: 2017/03/23 15:17:27 by jhalford ### ########.fr */
/* Updated: 2017/03/24 17:02:40 by wescande ### ########.fr */
/* */
/* ************************************************************************** */
@ -25,10 +25,8 @@ int lexer_bquote(t_list **alst, t_lexer *lexer)
if (get_lexer_stack(*lexer) != BQUOTE)
push(&lexer->stack, lexer->state);
else
{
lexer->state = pop(&lexer->stack) &&
get_lexer_stack(*lexer) == DQUOTE ? DQUOTE : DEFAULT;
}
}
else if (lexer->str[lexer->pos] == '\\' && (back = 1))
{