Skip to content

Commit

Permalink
fix(parser.ts): fix parsing enum identifier issue
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnDoeAntler committed Jul 26, 2021
1 parent 5182e07 commit 2de5dc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/source/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2690,7 +2690,7 @@ export class asCParser {
break;
}

if (token.type == eTokenType.ttIdentifier) {
if (token.type != eTokenType.ttIdentifier) {
this.Error(TXT_EXPECTED_IDENTIFIER, token);
this.Error(this.InsteadFound(token), token);
return node;
Expand Down

0 comments on commit 2de5dc3

Please sign in to comment.