42School / norminette

Official 42 norminette
MIT License
944 stars 139 forks source link

Missing space after unary operator not caught #333

Open mjy9088 opened 2 years ago

mjy9088 commented 2 years ago

Describe the bug

Missing space after unary operator not caught

Erroneous code

#include <stdio.h>

int main(void)
{
    return (0 +0);
}

Additional infos

Additional context

    return (
        +sort_and_move_x // unary
        + sort_only_y
        + rotate
        + sort_only_z
        + collect
    );
    return (
        + sort_and_move_x // considered an error?
        + sort_only_y
        + rotate
        + sort_only_z
        + collect
    );
matthieu42Network commented 1 year ago

duplicate #290