Issue #787 resolved

Objective-C lexer sometimes does not recognize @-keywords

Sasha Wood
created an issue

In this chunk of code, the Implementation is marked as an error.

{{{ Interface RKManagedObjectLoaderTest : RKTestCase {

}

Patrik Åkerlund

Implementation RKManagedObjectLoaderTest

  • (void)testShouldDeleteObjectFromLocalStoreOnDELETE {

    RKManagedObjectStore* store = [RKTestFactory managedObjectStore];

}


In the following chunk of code, the Implementation is also marked as an error.

RK_FIX_CATEGORY_BUG(NSURL_RKAdditions)

Implementation NSURL (RKAdditions)

  • (NSDictionary *)queryParameters {

    return [NSDictionary dictionaryWithURLEncodedString:self.query];

}

Patrik Åkerlund


In the following chunk of code, the optional is marked as an error.

Pablo Delgado FBSessionDelegate;

Interface Facebook : NSObject<FBLoginDialogDelegate>{

NSString* _accessToken;

}

Property(nonatomic, copy) NSString* accessToken;

Patrik Åkerlund

Pablo Delgado FBSessionDelegate <NSObject>

optional

  • (void)fbDidLogin; }}}

I think this may be a problem with the lexer expecting a } or ; before a keyword.

Comments (3)

  1. Sasha Wood reporter

    (Reply via sw...@pontetec.com):

    Thank you so much!

    Sasha Wood

    On Sun, Aug 19, 2012 at 5:12 AM, Georg Brandl <issues-reply@bitbucket.org>w= rote:

  2. Log in to comment