Revision: 17813
Author: [email protected]
Date: Mon Nov 18 08:26:36 2013 UTC
Log: Experimental parser: handle hex escapes in strings
[email protected]
BUG=
Review URL: https://codereview.chromium.org/59823005
http://code.google.com/p/v8/source/detail?r=17813
Modified:
/branches/experimental/parser/src/lexer/lexer_py.re
=======================================
--- /branches/experimental/parser/src/lexer/lexer_py.re Mon Nov 18 08:04:43
2013 UTC
+++ /branches/experimental/parser/src/lexer/lexer_py.re Mon Nov 18 08:26:36
2013 UTC
@@ -200,7 +200,8 @@
<<DoubleQuoteString>>
/\\\n\r?/ <||continue>
/\\\r\n?/ <||continue>
-/\\./ <||continue>
+/\\[xX][:hex_digit:]{2}/ <||continue>
+/\\[^xX\r\n]/ <||continue>
/\n|\r/ <|push_token(ILLEGAL)|>
"\"" <|push_token(STRING)|>
eof <|terminate_illegal|>
@@ -209,7 +210,8 @@
<<SingleQuoteString>>
/\\\n\r?/ <||continue>
/\\\r\n?/ <||continue>
-/\\./ <||continue>
+/\\[xX][:hex_digit:]{2}/ <||continue>
+/\\[^xX\r\n]/ <||continue>
/\n|\r/ <|push_token(ILLEGAL)|>
"'" <|push_token(STRING)|>
eof <|terminate_illegal|>
--
--
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.