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

Unified Diff: tools/lexer_generator/regex_lexer.py

Issue 75143002: Experimental parser: make string rules look more like ecma spec (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 | « src/lexer/lexer_py.re ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/lexer_generator/regex_lexer.py
diff --git a/tools/lexer_generator/regex_lexer.py b/tools/lexer_generator/regex_lexer.py
index b653fdd752054deb3f3e920a0f15ef1f4e6b2afa..ceab99dc79a7ed19fd9435d4941fa6e7fae2ce60 100644
--- a/tools/lexer_generator/regex_lexer.py
+++ b/tools/lexer_generator/regex_lexer.py
@@ -69,7 +69,7 @@ class RegexLexer:
('repeat','exclusive'),
)
- __escaped_literals = build_escape_map("(){}[]?+.*|\\")
+ __escaped_literals = build_escape_map("(){}[]?+.*|'\"\\")
def t_ESCAPED_LITERAL(self, t):
r'\\.'
@@ -115,7 +115,7 @@ class RegexLexer:
t.value = RegexLexer.__escaped_class_literals[t.value]
return t
- t_class_CLASS_LITERAL = r'[\w *$_+\'/]'
+ t_class_CLASS_LITERAL = r'[\w *$_+\'\"/]'
def t_REPEAT_BEGIN(self, t):
r'\{'
« no previous file with comments | « src/lexer/lexer_py.re ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698