Allow 'us' and 'is' machine-dependent suffixes

This commit is contained in:
Ben S
2015-02-15 12:54:55 +00:00
parent d2549503b5
commit 2c06798f84

11
rust.mm
View File

@@ -210,8 +210,17 @@ SInt32 skipNumber(BBLMTextIterator &iter)
}
else if (ch == 'f' || ch == 'u' || ch == 'i')
{
hasSuffix = true;
length++;
if (ch != 'f' && iter.strcmp("s", 1) == 0)
{
// Parse 'us' or 'is' machine-dependent suffixes
length++;
}
else
{
// Otherwise, allow for numbers at the end
hasSuffix = true;
}
break;
}
else