Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Objective-C lexer cannot identify message without parameters #820

Open
Anteru opened this issue Aug 31, 2019 · 2 comments
Open

Objective-C lexer cannot identify message without parameters #820

Anteru opened this issue Aug 31, 2019 · 2 comments
Labels
S-major severity: major T-bug type: a bug X-imported imported from Bitbucket

Comments

@Anteru
Copy link
Collaborator

Anteru commented Aug 31, 2019

(Original issue 1113 created by renfeisong on 2015-05-28T05:20:12.611862+00:00)

For example,

#!objective-c

[[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).

@Anteru Anteru added T-bug type: a bug X-imported imported from Bitbucket S-major severity: major labels Aug 31, 2019
@Anteru
Copy link
Collaborator Author

Anteru commented Aug 31, 2019

(Original issue was assigned to tshatch)

@Anteru
Copy link
Collaborator Author

Anteru commented Aug 31, 2019

(Original comment by tshatch on 2015-11-01T03:52:12.381221+00:00)

'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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-major severity: major T-bug type: a bug X-imported imported from Bitbucket
Projects
None yet
Development

No branches or pull requests

1 participant