Skip to content

Commit 3350def

Browse files
committed
Fixed a code location error with variable lists
1 parent 15c557b commit 3350def

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/modules/soul_core/compiler/soul_Parser.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1857,7 +1857,7 @@ struct StructuralParser : public SOULTokeniser
18571857

18581858
template <typename AddToNamespaceFn>
18591859
void parseVariableDeclaration (AST::Expression& declaredType, Identifier name, bool isExternal,
1860-
const AST::Context& context, AddToNamespaceFn&& addToNamespace)
1860+
AST::Context context, AddToNamespaceFn&& addToNamespace)
18611861
{
18621862
for (;;)
18631863
{
@@ -1893,6 +1893,7 @@ struct StructuralParser : public SOULTokeniser
18931893
break;
18941894

18951895
expect (Operator::comma);
1896+
context = getContext();
18961897
name = parseIdentifier();
18971898
}
18981899
}

0 commit comments

Comments
 (0)