parser: parse namespace into single node

This commit is contained in:
Ryan Chandler 2022-11-28 14:19:10 +00:00
parent 807c9e73cd
commit 9ad5f54a75
No known key found for this signature in database
GPG Key ID: F113BCADDB3B0CCA

View File

@ -200,7 +200,11 @@ impl Parser {
let body = if braced {
self.block(&TokenKind::RightBrace)?
} else {
Block::new()
let mut body = Block::new();
while ! self.is_eof() {
body.push(self.top_level_statement()?);
}
body
};
if braced {