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

Unified Diff: src/lexer/lexer_py.re

Issue 63363004: Experimental lexer generator: comment fixes. (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 | « no previous file | tools/lexer_generator/code_generator.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/lexer/lexer_py.re
diff --git a/src/lexer/lexer_py.re b/src/lexer/lexer_py.re
index 481d8e488d18081d7979384de08db6ba874640a9..978bc0de58150b41a2bc424af22d31d6f739aff1 100644
--- a/src/lexer/lexer_py.re
+++ b/src/lexer/lexer_py.re
@@ -65,7 +65,7 @@ number =
"/*" <||MultiLineComment>
"<!--" <||HtmlComment>
-whitespace? "-->" <{
+"-->" <{
if (!just_seen_line_terminator_) {
PUSH_TOKEN(Token::DEC);
start_ = cursor_ - 1;
@@ -206,6 +206,7 @@ identifier_char <|push_token(IDENTIFIER)|continue>
<<SingleLineComment>>
line_terminator <|push_line_terminator|>
+eof <|skip_and_terminate|>
catch_all <||continue>
<<MultiLineComment>>
« no previous file with comments | « no previous file | tools/lexer_generator/code_generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698