diff --git a/components/compiler/scanner.cpp b/components/compiler/scanner.cpp index a547e6ec5..38e0c353d 100644 --- a/components/compiler/scanner.cpp +++ b/components/compiler/scanner.cpp @@ -372,7 +372,18 @@ namespace Compiler else if (c==')') special = S_close; else if (c=='.') + { + // check, if this starts a float literal + if (get (c)) + { + putback (c); + + if (std::isdigit (c)) + return scanFloat ("", parser, cont); + } + special = S_member; + } else if (c=='=') { if (get (c))