Skip to content

Commit 55afc36

Browse files
committed
[parser] Fix bug trying to undefine a dictionary element.
1 parent c3fec22 commit 55afc36

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/parser/parser_tokenizer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1551,6 +1551,7 @@ void Parser::Read_Symbol()
15511551
c = Echo_getc();
15521552
Echo_ungetc(c);
15531553

1554+
SYM_TABLE* parentTable = table;
15541555
if (pseudoDictionary >= 0)
15551556
{
15561557
table = Tables [pseudoDictionary];
@@ -1600,6 +1601,7 @@ void Parser::Read_Symbol()
16001601
else
16011602
{
16021603
breakLoop = true;
1604+
table = parentTable;
16031605
break;
16041606
}
16051607

0 commit comments

Comments
 (0)