Skip to content

Commit 1a3ee98

Browse files
committed
Bug: Fix formatting issue found when GOLFing already GOLFed output.
1 parent c91bd04 commit 1a3ee98

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ShaderShrinker/Shrinker.Parser/GlslOutputFormatter.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ public static void AppendCode(StringBuilder sb, SyntaxNode rootNode)
157157

158158
if (o.Next is VariableAssignmentSyntaxNode or FunctionCallSyntaxNode or VariableDeclarationSyntaxNode)
159159
sb.Append(' ');
160+
else if ((o.Next as GenericSyntaxNode)?.Token is INumberToken or TypeToken)
161+
sb.Append(' ');
160162
break;
161163

162164
case ConstToken:

0 commit comments

Comments
 (0)