parser: Fixed in_expression bug for nested expressions