From b9aefd8d323a92467b607188a92d987beec75062 Mon Sep 17 00:00:00 2001 From: Ben S Date: Mon, 27 Oct 2014 14:34:45 +0000 Subject: [PATCH] Make underscores valid number components --- rust.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust.mm b/rust.mm index 8e88047..8d331cd 100644 --- a/rust.mm +++ b/rust.mm @@ -159,7 +159,7 @@ SInt32 skipNumber(BBLMTextIterator &iter) while ((ch = iter.GetNextChar())) { - if (isdigit(ch)) + if (isdigit(ch) || (ch == '_' && length > 0)) { length++; }