Revision: 18182
Author:   [email protected]
Date:     Mon Dec  2 11:38:04 2013 UTC
Log:      Experimental scanner: fix new-line detection.

BUG=
[email protected]

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

Modified:
 /branches/experimental/parser/src/lexer/lexer_py.re

=======================================
--- /branches/experimental/parser/src/lexer/lexer_py.re Wed Nov 27 16:07:52 2013 UTC +++ /branches/experimental/parser/src/lexer/lexer_py.re Mon Dec 2 11:38:04 2013 UTC
@@ -38,7 +38,7 @@
   /\.[:digit:]+/ maybe_exponent |
   /[:digit:]+(\.[:digit:]*)?/ maybe_exponent );
 harmony_number = "0"[bBoO][:digit:]+;
-line_terminator_sequence = /[:line_terminator:]|\r\n/;
+line_terminator_sequence = /[:line_terminator:]|(\r\n|\n\r)/;
 eos = [:eos:];

 # grammar is

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