Fixed stupid bug in data tree parsing code.
This commit is contained in:
parent
37f0eb33dd
commit
539dc47b4e
|
@ -91,7 +91,7 @@ fn parse<'a>(source_text: &'a str) -> ParseResult<'a> {
|
|||
text_remaining = text3;
|
||||
children.push(node);
|
||||
}
|
||||
if let (Token::CloseInner, text3) = next_token(text2) {
|
||||
if let (Token::CloseInner, text3) = next_token(text_remaining) {
|
||||
return Ok((DataTree::Internal {
|
||||
type_: t,
|
||||
name: None,
|
||||
|
|
|
@ -64,7 +64,7 @@ fn main() {
|
|||
Obj [Things and stuff\]]
|
||||
}
|
||||
|
||||
Thing $yar { # A comment
|
||||
Thing { # A comment
|
||||
Obj [23]
|
||||
Obj [42]
|
||||
Obj ["The meaning of life!"]
|
||||
|
|
Loading…
Reference in New Issue
Block a user