Fix bug in Smalltalk reader where the last character of an identifier

was dropped when the assignment operator ':=' follows it immediately.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@36480 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Wolfgang Lux 2013-04-06 12:22:28 +00:00
parent 9576ab41c4
commit ba12bd3874
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2013-04-06 Wolfgang Lux <wolfgang.lux@gmail.com>
* STSourceReader.m (-readNextToken): Fix bug where the last character
of an identifier was dropped when the assignment operator ':=' follows
it immediately.
2013-04-03 Wolfgang Lux <wolfgang.lux@gmail.com>
* NSArray+additions.m (-collect:): Properly handle nil results from

View file

@ -287,7 +287,7 @@ static NSString *_STNormalizeStringToken(NSString *token)
/* We have found := */
srcOffset --;
tokenRange = NSMakeRange(start,srcOffset - start - 1);
tokenRange = NSMakeRange(start,srcOffset - start);
return STIdentifierTokenType;
}
else