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

Unified Diff: tools/lexer_generator/code_generator.jinja

Issue 83693002: Experimentar scanner: Unify the API to Scanner API some more. (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 | « test/lexer/cornercases/multiline-and-weird-html-comment.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/lexer_generator/code_generator.jinja
diff --git a/tools/lexer_generator/code_generator.jinja b/tools/lexer_generator/code_generator.jinja
index 00cbf9b1fffbee8403850b0a03a4b2ea19f35b5c..a80fb0d15c0fd4e162a449dbec2898e1b475ee01 100644
--- a/tools/lexer_generator/code_generator.jinja
+++ b/tools/lexer_generator/code_generator.jinja
@@ -193,7 +193,6 @@
next_.beg_pos = start_ - buffer_; \
next_.end_pos = cursor_ - buffer_; \
start_ = cursor_; \
- just_seen_line_terminator_ = false; \
}
#define PUSH_TOKEN(T) { \
@@ -216,7 +215,7 @@
#define PUSH_LINE_TERMINATOR(s) { \
start_ = cursor_; \
- just_seen_line_terminator_ = true; \
+ has_line_terminator_before_next_ = true; \
}
#define FORWARD() { \
« no previous file with comments | « test/lexer/cornercases/multiline-and-weird-html-comment.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698