Reviewers: marja,
Message:
PTAL
Description:
Experimental scanner: fix new-line detection.
BUG=
Please review this at https://codereview.chromium.org/93893006/
SVN Base: https://v8.googlecode.com/svn/branches/experimental/parser
Affected files (+1, -1 lines):
M src/lexer/lexer_py.re
Index: src/lexer/lexer_py.re
diff --git a/src/lexer/lexer_py.re b/src/lexer/lexer_py.re
index
7b0cababf8e029f6b1530fb3957efe6bf815593a..dadfc3436594120d5e4e9aacb608a1b3bea4321d
100644
--- a/src/lexer/lexer_py.re
+++ b/src/lexer/lexer_py.re
@@ -38,7 +38,7 @@ number =
/\.[: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.