From 2c06798f84d2e41da8b8af598703f15de1b8af3a Mon Sep 17 00:00:00 2001 From: Ben S Date: Sun, 15 Feb 2015 12:54:55 +0000 Subject: [PATCH] Allow 'us' and 'is' machine-dependent suffixes --- rust.mm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/rust.mm b/rust.mm index 7612951..7625986 100644 --- a/rust.mm +++ b/rust.mm @@ -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