| Index: src/scanner.cc
|
| diff --git a/src/scanner.cc b/src/scanner.cc
|
| index 1dae1e42cd4c8f726cf95916205066782dc35fcd..6187c6605edfc705e8fcacb503ba4ad2014c5e83 100644
|
| --- a/src/scanner.cc
|
| +++ b/src/scanner.cc
|
| @@ -225,6 +225,10 @@ static const byte one_char_tokens[] = {
|
|
|
|
|
| Token::Value Scanner::Next() {
|
| + if (next_.token == Token::EOS) {
|
| + next_.location.beg_pos = current_.location.beg_pos;
|
| + next_.location.end_pos = current_.location.end_pos;
|
| + }
|
| current_ = next_;
|
| has_line_terminator_before_next_ = false;
|
| has_multiline_comment_before_next_ = false;
|
|
|