From eec12aaf350ef69b79d149adbc3585cf784552ad Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 1 Aug 2012 18:06:31 +0300 Subject: [PATCH] Recognize floating-point literals with an exponent but no decimal point --- source/textparser.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/textparser.cpp b/source/textparser.cpp index c4eb03c..9bed08a 100644 --- a/source/textparser.cpp +++ b/source/textparser.cpp @@ -237,6 +237,8 @@ Token TextParser::parse_token() case DECIMAL: if(c=='.') state = FLOAT; + else if(c=='e' || c=='E') + state = FLOATEXPINIT; else if(!isdigit(c)) throw parse_error(buf); break; -- 2.43.0