| Index: src/scanner-base.h
|
| diff --git a/src/scanner-base.h b/src/scanner-base.h
|
| index 1024ad18582e3c078793d2295fe3cb8a92d23b18..40f6a9bcaebd4877ed813a42ede02e013e0afe01 100644
|
| --- a/src/scanner-base.h
|
| +++ b/src/scanner-base.h
|
| @@ -280,6 +280,10 @@ class Scanner {
|
| Location location() const { return current_.location; }
|
| Location peek_location() const { return next_.location; }
|
|
|
| + // Returns the location of the last seen octal literal
|
| + int octal_position() const { return octal_pos_; }
|
| + void clear_octal_position() { octal_pos_ = -1; }
|
| +
|
| // Returns the literal string, if any, for the current token (the
|
| // token returned by Next()). The string is 0-terminated and in
|
| // UTF-8 format; they may contain 0-characters. Literal strings are
|
| @@ -410,6 +414,8 @@ class Scanner {
|
| // Input stream. Must be initialized to an UC16CharacterStream.
|
| UC16CharacterStream* source_;
|
|
|
| + // Start position of the octal literal last scanned.
|
| + int octal_pos_;
|
|
|
| // One Unicode character look-ahead; c0_ < 0 at the end of the input.
|
| uc32 c0_;
|
|
|