Properly point at the last opening brace
This commit is contained in:
parent
6b9740bf02
commit
45df52f2cc
1 changed files with 1 additions and 1 deletions
|
@ -183,7 +183,7 @@ impl<'a> Iterator for Parser<'a> {
|
|||
'{' => {
|
||||
let curr_last_brace = self.last_opening_brace;
|
||||
let byte_pos = self.to_span_index(pos);
|
||||
self.last_opening_brace = Some(byte_pos.to(byte_pos));
|
||||
self.last_opening_brace = Some(byte_pos.to(InnerOffset(byte_pos.0 + 1)));
|
||||
self.cur.next();
|
||||
if self.consume('{') {
|
||||
self.last_opening_brace = curr_last_brace;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue