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

Unified Diff: tools/lexer_generator/code_generator.jinja

Issue 78933002: Experimental lexer generator / utf16 support: Fix + add test files. (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/utf-16-2.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 4ed43af92bed51c5143b80432a0271a028032c87..a6a381d83ca5c96abe4affb17dc9ea8ea262dea5 100644
--- a/tools/lexer_generator/code_generator.jinja
+++ b/tools/lexer_generator/code_generator.jinja
@@ -19,7 +19,8 @@
{%- elif r[1] == 'zero' -%}
(yych == 0 && cursor_ < buffer_end_)
{%- elif r[1] == 'whitespace' and encoding == 'utf16'-%}
- unicode_cache_->IsWhiteSpace(yych)
+ {# FIXME: Add and use unicode_cache_->InNonAsciiWhitespace #}
+ (yych != ' ' && yych != '\t' && yych != '\v' && yych != '\f' && yych != '\r' && yych != '\n' && unicode_cache_->IsWhiteSpace(yych))
{%- elif r[1] == 'letter' and encoding == 'utf16'-%}
{# FIXME: Add and use unicode_cache_->InNonAsciiLetter #}
(!(yych >= 'a' && yych <= 'z') && !(yych >= 'A' && yych <= 'Z') && unicode_cache_->IsLetter(yych))
« no previous file with comments | « test/lexer/utf-16-2.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698