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)) {