[syntax] correctly separate boolean and bit logic