Revision: 17797
Author:   [email protected]
Date:     Fri Nov 15 15:32:46 2013 UTC
Log:      Experimental parser: better end of multiline comment detection

[email protected]

BUG=

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

Modified:
 /branches/experimental/parser/src/lexer/lexer_py.re
 /branches/experimental/parser/tools/lexer_generator/regex_lexer.py

=======================================
--- /branches/experimental/parser/src/lexer/lexer_py.re Fri Nov 15 12:56:52 2013 UTC +++ /branches/experimental/parser/src/lexer/lexer_py.re Fri Nov 15 15:32:46 2013 UTC
@@ -229,9 +229,9 @@
 catch_all <||continue>

 <<MultiLineComment>>
-"*/"             <|skip|>
+/\*+\//             <|skip|>
 # TODO find a way to generate the below rule
-/\*[^\/]/        <||continue>
+/\*+[^\/*]/       <||continue>
 line_terminator  <push_line_terminator||continue>
 eof <|skip_and_terminate|>
 catch_all        <||continue>
=======================================
--- /branches/experimental/parser/tools/lexer_generator/regex_lexer.py Thu Nov 14 17:30:55 2013 UTC +++ /branches/experimental/parser/tools/lexer_generator/regex_lexer.py Fri Nov 15 15:32:46 2013 UTC
@@ -115,7 +115,7 @@
     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'\{'

--
--
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