From 2b000474d9350ede1c1aedb83ba8976d81ba4cf8 Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 7 Sep 2015 17:33:44 +0100 Subject: py/lexer: Properly classify floats that look like hex numbers. Eg 0e0 almost looks like a hex number but in fact is a float. --- tests/float/float1.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/float') diff --git a/tests/float/float1.py b/tests/float/float1.py index 935375c47..27fe26205 100644 --- a/tests/float/float1.py +++ b/tests/float/float1.py @@ -4,6 +4,9 @@ print(.12) print(1.) print(1.2) +print(0e0) +print(0e+0) +print(0e-0) # float construction print(float(1.2)) -- cgit v1.2.3