1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

C++ tokeniser fix.

This commit is contained in:
jules 2012-08-05 18:05:30 +01:00
parent 27ebcccb7e
commit 897ee9017b

View file

@ -297,8 +297,6 @@ namespace CppTokeniser
return tokenType_integer;
source = original;
source.skip();
return tokenType_error;
}
@ -419,14 +417,16 @@ int CPlusPlusCodeTokeniser::readNextToken (CodeDocument::Iterator& source)
case '7':
case '8':
case '9':
result = parseNumber (source);
break;
case '.':
result = parseNumber (source);
if (result == tokenType_error)
result = tokenType_punctuation;
{
source.skip();
if (firstChar == '.')
result = tokenType_punctuation;
}
break;