diff --git a/trunk_parser/src/parser/mod.rs b/trunk_parser/src/parser/mod.rs index 4e52272..db7b173 100644 --- a/trunk_parser/src/parser/mod.rs +++ b/trunk_parser/src/parser/mod.rs @@ -2783,6 +2783,19 @@ mod tests { r#else: Box::new(Expression::Int { i: 5 }), })], ); + + assert_ast( + " Self::And, BooleanOr => Self::Or, Coalesce => Self::NullCoalesce, - Question => Self::Ternary, + Question | QuestionColon => Self::Ternary, Equals | PlusEquals | MinusEquals | AsteriskEqual | PowEquals | SlashEquals | DotEquals | AndEqual | CoalesceEqual | PercentEquals | AmpersandEquals | PipeEquals | CaretEquals | LeftShiftEquals | RightShiftEquals => Self::Assignment,