Allow decimal points in numbers

This commit is contained in:
Ben S
2014-11-09 20:19:55 +00:00
parent 2f2ddc55bf
commit b68e3e3b77

View File

@@ -161,7 +161,7 @@ SInt32 skipNumber(BBLMTextIterator &iter)
while ((ch = iter.GetNextChar()))
{
if (isdigit(ch) || (ch == '_' && length > 0))
if (isdigit(ch) || ((ch == '_' || ch == '.') && length > 0))
{
length++;
}
@@ -581,7 +581,8 @@ static bool isSpecialKind(NSString* kind)
|| [kBBLMLineCommentRunKind isEqualToString:kind]
|| [identifierColour isEqualToString:kind]
|| [attributeColour isEqualToString:kind]
|| [lifetimeColour isEqualToString:kind];
|| [lifetimeColour isEqualToString:kind]
|| [functionColour isEqualToString:kind];
}
OSErr adjustRange(BBLMParamBlock &params, const BBLMCallbackBlock &callbacks)