X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftextparser.cpp;h=9bed08ac9e0ea5a154208b24cda76dc75925267b;hb=bbb5a5b00b4008684d5c32b3ea2fd21f7a5fad54;hp=c4eb03c7d91ef21e2b1af8d707e2f1363cc7fc4e;hpb=d14b7ddd81404b909a4c4763a36a23b94998a089;p=libs%2Fdatafile.git 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;