Reviewers: dcarney,

Message:
Committed patchset #1 manually as r17435.

Description:
Experimental lexer generator: escaping fix

BUG=
[email protected]

Committed: https://code.google.com/p/v8/source/detail?r=17435

Please review this at https://codereview.chromium.org/52693002/

SVN Base: https://v8.googlecode.com/svn/branches/experimental/parser

Affected files (+1, -1 lines):
  M tools/lexer_generator/regex_lexer.py


Index: tools/lexer_generator/regex_lexer.py
diff --git a/tools/lexer_generator/regex_lexer.py b/tools/lexer_generator/regex_lexer.py index deabd84c5d6ab42850ec384e8179ae4ceb9e0419..0506e32393e176aaff860faeda93fcf616c19bb6 100644
--- a/tools/lexer_generator/regex_lexer.py
+++ b/tools/lexer_generator/regex_lexer.py
@@ -86,7 +86,7 @@ class RegexLexer:
   t_class_NOT = '\^'

   def t_class_ESCAPED_CLASS_LITERAL(self, t):
-    r'\\\^|\\-'
+    r'\\\^|\\-|\\\[|\\\]'
     t.type = 'CLASS_LITERAL'
     t.value = t.value[1:]
     return t


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to