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

Unified Diff: tools/lexer_generator/rule_lexer.py

Issue 59903027: Experimental parser: more escaping (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 | « tools/lexer_generator/regex_lexer.py ('k') | tools/lexer_generator/rule_parser.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/lexer_generator/rule_lexer.py
diff --git a/tools/lexer_generator/rule_lexer.py b/tools/lexer_generator/rule_lexer.py
index e8a6207d4e0b79f85011764d71deaa9945ef7b56..0f5865afcb6f52410fa57f77916ac99b4d5ba8dc 100644
--- a/tools/lexer_generator/rule_lexer.py
+++ b/tools/lexer_generator/rule_lexer.py
@@ -80,7 +80,7 @@ class RuleLexer:
return t
t_STRING = r'"((\\("|\w|\\))|[^\\"])+"'
- t_REGEX = r'/[^\/]+/'
+ t_REGEX = r'/(\\/|[^/])+/'
t_CHARACTER_CLASS_REGEX = r'\[([^\]]|\\\])+\]'
t_PLUS = r'\+'
« no previous file with comments | « tools/lexer_generator/regex_lexer.py ('k') | tools/lexer_generator/rule_parser.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698