Revision: 17812
Author:   [email protected]
Date:     Mon Nov 18 08:04:43 2013 UTC
Log:      Experimental parser: better hex digit detection

[email protected]

BUG=

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

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

=======================================
--- /branches/experimental/parser/src/lexer/lexer_py.re Fri Nov 15 15:32:46 2013 UTC +++ /branches/experimental/parser/src/lexer/lexer_py.re Mon Nov 18 08:04:43 2013 UTC
@@ -34,7 +34,7 @@
 hex_digit = [0-9a-fA-F];
 maybe_exponent = /([eE][\-+]?[:digit:]+)?/;
 number =
-  /0x[:hex_digit:]+/ | (
+  /0[xX][:hex_digit:]+/ | (
   /\.[:digit:]+/ maybe_exponent |
   /[:digit:]+(\.[:digit:]*)?/ maybe_exponent );

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