In commit
aac1d76 the tokenization was changed to set ASSIGNMENT_WORDs
to WORDs when the ASSIGNMENT_WORD is not in a proper place.
The filter however didn't check whether current token is ASSIGNMENT_WORD
hence other tokens could be changed to WORD also.
/* By: ljiriste <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/21 16:34:43 by ljiriste #+# #+# */
-/* Updated: 2024/08/23 18:43:53 by ljiriste ### ########.fr */
+/* Updated: 2024/08/26 12:07:29 by ljiriste ### ########.fr */
/* */
/* ************************************************************************** */
while (i < tokens->size)
{
token = ft_vec_access(tokens, i);
- if (i == 0)
+ if (i == 0 || token->type != g_tokens[ASSIGNMENT_WORD])
{
++i;
continue ;