From 25619b4efd16726005e20914c4dfabeca0ede338 Mon Sep 17 00:00:00 2001 From: ferriarnus <61201275+ferriarnus@users.noreply.github.com> Date: Mon, 21 Oct 2024 19:46:26 +0200 Subject: [PATCH] Update TypeFinder.java --- src/main/java/org/taumc/glsl/TypeFinder.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/taumc/glsl/TypeFinder.java b/src/main/java/org/taumc/glsl/TypeFinder.java index b72bf47..10e8340 100644 --- a/src/main/java/org/taumc/glsl/TypeFinder.java +++ b/src/main/java/org/taumc/glsl/TypeFinder.java @@ -31,7 +31,8 @@ public void enterSingle_declaration(GLSLParser.Single_declarationContext ctx) { } } } - } else if (ctx.getParent() instanceof GLSLParser.Init_declarator_listContext listContext) { + } + if (ctx.getParent() instanceof GLSLParser.Init_declarator_listContext listContext) { for (var entry : listContext.typeless_declaration()) { if (entry.IDENTIFIER().getSymbol() instanceof CommonToken cToken) { if (cToken.getText().equals(name)) {