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

Unified Diff: src/lexer/lexer_py.re

Issue 75203002: Experimental lexer generator: Fix number rules. (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 | no next file » | 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 96d4f516a61feaad57d5dd103ee06c866ccdb6c2..bf08134c8237cf607c947d7851c402a633478027 100644
--- a/src/lexer/lexer_py.re
+++ b/src/lexer/lexer_py.re
@@ -101,6 +101,7 @@ line_terminator_sequence = (/\n\r?/)|(/\r\n?/);
number <|push_token(NUMBER)|>
number identifier_char <|push_token(ILLEGAL)|>
+number "\\" <|push_token(ILLEGAL)|>
"(" <|push_token(LPAREN)|>
")" <|push_token(RPAREN)|>
« 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