From bb6aa273f45a288af91cc43cfd5c94c05147db66 Mon Sep 17 00:00:00 2001 From: LPeter1997 Date: Mon, 23 Oct 2023 19:24:45 +0200 Subject: [PATCH] Update Formatter.cs --- .../Internal/Syntax/Formatting/Formatter.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Draco.Compiler/Internal/Syntax/Formatting/Formatter.cs b/src/Draco.Compiler/Internal/Syntax/Formatting/Formatter.cs index 4bb7ff73c..1424d5be4 100644 --- a/src/Draco.Compiler/Internal/Syntax/Formatting/Formatter.cs +++ b/src/Draco.Compiler/Internal/Syntax/Formatting/Formatter.cs @@ -129,6 +129,16 @@ public override SyntaxNode VisitBinaryExpression(BinaryExpressionSyntax node) => Space, node.Right)); + public override SyntaxNode VisitRelationalExpression(RelationalExpressionSyntax node) => node.Update(this.AppendSequence( + node.Left, + node.Comparisons)); + + public override SyntaxNode VisitComparisonElement(ComparisonElementSyntax node) => node.Update(this.AppendSequence( + Space, + node.Operator, + Space, + node.Right)); + public override SyntaxNode VisitGroupingExpression(GroupingExpressionSyntax node) => node.Update(this.AppendSequence( node.OpenParen, node.Expression,