diff --git a/src/parser.rs b/src/parser.rs index a9c6a57..e115641 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -39,7 +39,7 @@ impl<'source> Parser<'source> { // T-Dark block (replace `lang` with `script`) Token::TDark => { self.tdark = true; - let block = self.get_block()?; + let mut block = self.get_block()?; ast.append(&mut block.block); self.tdark = false; }