bq->dq seems to function

This commit is contained in:
Jack Halford 2017-02-10 13:50:46 +01:00
parent a144239a56
commit f7ed0a6bdd

View file

@ -29,7 +29,7 @@ int lexer_bquote(t_list **alst, t_lexer *lexer)
push(&lexer->stack, lexer->state);
return (lexer_lex(alst, lexer));
}
top_state = *(int*)pop(&lexer->stack);
top_state = *(int*)pop(&lexer->stack)->content;
lexer->state = top_state == DQUOTE_BQUOTE ? DQUOTE : DEFAULT;
return (lexer_lex(alst, lexer));
}