Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Unified Diff: src/lexer/even-more-experimental-scanner.cc

Issue 72693002: Experimental lexer generator: Don't go BACK(); (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/lexer/even-more-experimental-scanner.h ('k') | src/lexer/lexer_py.re » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/lexer/even-more-experimental-scanner.cc
diff --git a/src/lexer/even-more-experimental-scanner.cc b/src/lexer/even-more-experimental-scanner.cc
index ce9e3acc094fa4c59c0858e9289905562869a886..bcf8c2a0c91c002cbbbb15565997dd3f45006901 100644
--- a/src/lexer/even-more-experimental-scanner.cc
+++ b/src/lexer/even-more-experimental-scanner.cc
@@ -119,7 +119,7 @@ uint32_t EvenMoreExperimentalScanner::push(const void *input, int input_size) {
if (input_size == 0)
return 0;
buffer_ = const_cast<YYCTYPE*>(reinterpret_cast<const YYCTYPE*>(input));
- cursor_ = buffer_ - 1;
+ cursor_ = buffer_;
start_ = buffer_;
buffer_end_ = buffer_ + input_size;
return DoLex();
« no previous file with comments | « src/lexer/even-more-experimental-scanner.h ('k') | src/lexer/lexer_py.re » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698