Skip to content

Commit

Permalink
Update last_span in replace_token
Browse files Browse the repository at this point in the history
  • Loading branch information
nrc committed Mar 12, 2014
1 parent 1835667 commit 0d80de0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libsyntax/parse/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -770,6 +770,7 @@ impl Parser {
next: token::Token,
lo: BytePos,
hi: BytePos) {
self.last_span = mk_sp(self.span.lo, lo);
self.token = next;
self.span = mk_sp(lo, hi);
}
Expand Down

1 comment on commit 0d80de0

@alexcrichton
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r+

Please sign in to comment.