Issue #694: allow float literals starting with .

pull/16/head
Marc Zinnschlag 12 years ago
parent af191c7382
commit e2620a1edf

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

Loading…
Cancel
Save