Fixed stupid bug in data tree parsing code.

This commit is contained in:
Nathan Vegdahl 2015-12-28 00:58:41 -08:00
parent 37f0eb33dd
commit 539dc47b4e
2 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ fn parse<'a>(source_text: &'a str) -> ParseResult<'a> {
text_remaining = text3; text_remaining = text3;
children.push(node); children.push(node);
} }
if let (Token::CloseInner, text3) = next_token(text2) { if let (Token::CloseInner, text3) = next_token(text_remaining) {
return Ok((DataTree::Internal { return Ok((DataTree::Internal {
type_: t, type_: t,
name: None, name: None,

View File

@ -64,7 +64,7 @@ fn main() {
Obj [Things and stuff\]] Obj [Things and stuff\]]
} }
Thing $yar { # A comment Thing { # A comment
Obj [23] Obj [23]
Obj [42] Obj [42]
Obj ["The meaning of life!"] Obj ["The meaning of life!"]