Fixed termination of struct parse loop

develop.sync-conflict-20210606-150924-O3W7KWN
Tristan B. Kildaire 2021-05-31 18:06:09 +02:00
parent b07c2fb2b5
commit cf66e8255d
1 changed files with 6 additions and 5 deletions

View File

@ -348,6 +348,11 @@ public final class Parser
{
structMember = parseAccessor();
}
/* If closing brace then exit */
else if(symbolType == SymbolType.CCURLY)
{
break;
}
/* Ensure only function declaration or variable declaration */
if(cast(Function)structMember)
@ -378,11 +383,7 @@ public final class Parser
/* If closing brace then exit */
if(symbolType == SymbolType.CCURLY)
{
break;
}
/* TODO: Only allow variables here */
/* TODO: Only allowe VariableDeclarations (maybe assignments idk) */