Objective-C lexer cannot identify message without parameters

Create issue
Issue #1113 new
Renfei Song created an issue

For example,

[[NSCoreService serviceCenter] registerSubscriber:self];

The lexer will recognize registerSubscriber: as a method label (because there is a parameter follows it), but it will ignore serviceCenter (interpreted as Token.Name which is the same as the receiver NSCoreService).

Comments (2)

  1. Tim Hatch

    'registerSubscriber' getting Name.Label is an accident, it's from the C lexer. There's no special-casing of messages in the Objective C lexer, and should be.

  2. Log in to comment