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:
parent
27ebcccb7e
commit
897ee9017b
1 changed files with 6 additions and 6 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue