Check end of word after scanning functions

'enumerate' is not 'enum' with some bits after it!
This commit is contained in:
Ben S
2015-03-16 18:35:00 +00:00
parent 0fe7412e14
commit 439556cbe4

View File

@@ -394,6 +394,13 @@ SInt32 scanForSymbol(BBLMTextIterator &iter,
{
iter += keywordLen;
whitespaceLen = skipWhitespace(iter);
if (whitespaceLen == 0)
{
iter -= keywordLen + whitespaceLen;
return 0;
}
bool is_test = iter.strcmp("test", 4) == 0;
while ((ch = iter.GetNextChar()))