Avoid highlighting tuple indexes as numbers

This commit is contained in:
Ben S
2015-11-23 13:30:03 +00:00
parent 012448ebe8
commit 487b87d13a
2 changed files with 7 additions and 2 deletions

View File

@@ -939,7 +939,9 @@ OSErr calculateRuns(BBLMParamBlock &params, const BBLMCallbackBlock *callbacks)
runStart = iter.Offset();
}
wordchr = isalpha(ch) || isdigit(ch) || ch == '_';
// '.' is considered a word char to avoid the "0.0" in "tuple.0.0"
// being classified as a floating-point number.
wordchr = isalpha(ch) || isdigit(ch) || ch == '_' || ch == '.';
}
makeCodeRun(iter, runStart, *callbacks);