mirror of
https://github.com/gnustep/libs-steptalk.git
synced 2025-02-21 02:31:01 +00:00
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:
parent
9576ab41c4
commit
ba12bd3874
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue