Revision: 17435
Author:   [email protected]
Date:     Wed Oct 30 15:12:52 2013 UTC
Log:      Experimental lexer generator: escaping fix

BUG=
[email protected]

Review URL: https://codereview.chromium.org/52693002
http://code.google.com/p/v8/source/detail?r=17435

Modified:
 /branches/experimental/parser/tools/lexer_generator/regex_lexer.py

=======================================
--- /branches/experimental/parser/tools/lexer_generator/regex_lexer.py Tue Oct 29 15:10:46 2013 UTC +++ /branches/experimental/parser/tools/lexer_generator/regex_lexer.py Wed Oct 30 15:12:52 2013 UTC
@@ -86,7 +86,7 @@
   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