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

Unified Diff: tools/lexer_generator/code_generator.jinja

Issue 138723003: Experimental parser: add back forward before jumping to eos handler (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Created 6 years, 11 months 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 | « no previous file | 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 a4207826cf5ae71c7f2812146705217a8e1ac179..ab1c05720a086b2c524931c40b79f1c190202fd2 100644
--- a/tools/lexer_generator/code_generator.jinja
+++ b/tools/lexer_generator/code_generator.jinja
@@ -262,6 +262,7 @@
{%- if 'eos' in state['unique_transitions'] %}
if (primary_char == 0 && cursor_ >= buffer_end_) { // eos handler
+ FORWARD();
{{ jump(state['unique_transitions']['eos']) }}
}
{%- endif -%}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698