mirror of
https://github.com/gnustep/libs-steptalk.git
synced 2025-02-22 11:01:06 +00:00
Fix bug where the Smalltalk source reader was loosing the last character
of a symbol token that appears immediately before the end of input. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36777 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
254398ccdf
commit
70936d6e15
1 changed files with 0 additions and 10 deletions
|
@ -468,16 +468,6 @@ static NSString *_STNormalizeStringToken(NSString *token)
|
||||||
|
|
||||||
srcOffset--;
|
srcOffset--;
|
||||||
tokenRange = NSMakeRange(start, srcOffset - start);
|
tokenRange = NSMakeRange(start, srcOffset - start);
|
||||||
|
|
||||||
if ([identStartCharacterSet characterIsMember:c] &&
|
|
||||||
c != 'e' && c != 'E')
|
|
||||||
{
|
|
||||||
tokenRange = NSMakeRange(start, srcOffset - start + 1);
|
|
||||||
[NSException raise:STCompilerSyntaxException
|
|
||||||
format:@"Letter '%c' in number", c];
|
|
||||||
return STErrorTokenType;
|
|
||||||
}
|
|
||||||
|
|
||||||
return isReal ? STRealNumberTokenType : STIntNumberTokenType;
|
return isReal ? STRealNumberTokenType : STIntNumberTokenType;
|
||||||
}
|
}
|
||||||
else if ([symbolicSelectorCharacterSet characterIsMember:c])
|
else if ([symbolicSelectorCharacterSet characterIsMember:c])
|
||||||
|
|
Loading…
Reference in a new issue