Build raw function

This commit is contained in:
Rafał Grodziński
2025-07-13 15:06:52 +09:00
parent 26c566f4f6
commit 228dd80423
4 changed files with 35 additions and 20 deletions

View File

@@ -257,6 +257,9 @@ shared_ptr<Statement> Parser::matchStatementRawFunction() {
if (!rawSource.empty())
rawSource += "\n";
rawSource += tokens.at(currentIndex++)->getLexme();
// Consume optional new line (for example because of a comment)
tryMatchingTokenKinds({TokenKind::NEW_LINE}, true, true);
}
if(!tryMatchingTokenKinds({TokenKind::SEMICOLON}, false, true)) {