Permalink
Browse files

Merge branch 'master' of github.com:beelsebob/CoreParse

  • Loading branch information...
2 parents 40c2ed0 + 553d3b0 commit b5747448e7611a695951bfaa835d6f95c3ff2426 @beelsebob committed Aug 26, 2012
Showing with 3 additions and 4 deletions.
  1. +3 −4 README.md
View
7 README.md
@@ -68,13 +68,12 @@ Next, we add ourself as a delegate to the tokeniser. We implement the tokeniser
return YES;
}
-- (NSArray *)tokeniser:(CPTokeniser *)tokeniser willProduceToken:(CPToken *)token
+- (void)tokeniser:(CPTokeniser *)tokeniser requestsToken:(CPToken *)token pushedOntoStream:(CPTokenStream *)stream
{
- if ([token isKindOfClass:[CPWhiteSpaceToken class]] || [[token name] isEqualToString:@"Comment"])
+ if (![token isWhiteSpaceToken] && ![[token name] isEqualToString:@"Comment"])
{
- return [NSArray array];
+ [stream pushToken:token];
}
- return [NSArray arrayWithObject:token];
}
```

0 comments on commit b574744

Please sign in to comment.