Skip to content

Commit

Permalink
Allow newline after TYPE
Browse files Browse the repository at this point in the history
  • Loading branch information
SingularityT3 committed Feb 25, 2023
1 parent 0511e70 commit b1162ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/parser/userType.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Node *Parser::parseType() {
const Token &token = *currentToken;
advance();

while (currentToken->type == TokenType::LINE_END) advance();

const Token &identifier = *currentToken;
if (identifier.type != TokenType::IDENTIFIER)
throw PSC::ExpectedTokenError(*currentToken, "identifier");
Expand Down

0 comments on commit b1162ed

Please sign in to comment.