mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-04-15 13:36:47 +00:00
Issue #694: allow float literals starting with .
This commit is contained in:
parent
af191c7382
commit
e2620a1edf
1 changed files with 11 additions and 0 deletions
|
@ -372,7 +372,18 @@ namespace Compiler
|
||||||
else if (c==')')
|
else if (c==')')
|
||||||
special = S_close;
|
special = S_close;
|
||||||
else if (c=='.')
|
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;
|
special = S_member;
|
||||||
|
}
|
||||||
else if (c=='=')
|
else if (c=='=')
|
||||||
{
|
{
|
||||||
if (get (c))
|
if (get (c))
|
||||||
|
|
Loading…
Reference in a new issue