| Index: src/scanner.cc
|
| ===================================================================
|
| --- src/scanner.cc (revision 6941)
|
| +++ src/scanner.cc (working copy)
|
| @@ -322,10 +322,8 @@
|
| // V8JavaScriptScanner
|
|
|
|
|
| -void V8JavaScriptScanner::Initialize(UC16CharacterStream* source,
|
| - int literal_flags) {
|
| +void V8JavaScriptScanner::Initialize(UC16CharacterStream* source) {
|
| source_ = source;
|
| - literal_flags_ = literal_flags | kLiteralIdentifier;
|
| // Need to capture identifiers in order to recognize "get" and "set"
|
| // in object literals.
|
| Init();
|
| @@ -375,7 +373,7 @@
|
|
|
|
|
| void JsonScanner::ScanJson() {
|
| - next_.literal_chars = Vector<const char>();
|
| + next_.literal_chars = NULL;
|
| Token::Value token;
|
| do {
|
| // Remember the position of the next token
|
| @@ -457,7 +455,7 @@
|
| ASSERT_EQ('"', c0_);
|
| Advance();
|
| LiteralScope literal(this);
|
| - while (c0_ != '"' && c0_ > 0) {
|
| + while (c0_ != '"') {
|
| // Check for control character (0x00-0x1f) or unterminated string (<0).
|
| if (c0_ < 0x20) return Token::ILLEGAL;
|
| if (c0_ != '\\') {
|
| @@ -504,9 +502,6 @@
|
| Advance();
|
| }
|
| }
|
| - if (c0_ != '"') {
|
| - return Token::ILLEGAL;
|
| - }
|
| literal.Complete();
|
| Advance();
|
| return Token::STRING;
|
|
|