diff --git a/src/parser/treeify.rs b/src/parser/treeify.rs index d0b5021..cae4c90 100644 --- a/src/parser/treeify.rs +++ b/src/parser/treeify.rs @@ -65,7 +65,7 @@ fn treeify_binary( } else { let tl = *this.get_line_location(); return Err(( - LineLocation{pos: tl.pos, len: l.pos - tl.pos + l.len}, + LineLocation{pos: l.pos, len: tl.pos - l.pos + tl.len}, ParserError::Syntax )); }