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] Multi-parameter method names do not appear correctly in symbol list #1438

Open
kjteske opened this issue Feb 18, 2018 · 1 comment · May be fixed by #3572
Open

[Objective-C] Multi-parameter method names do not appear correctly in symbol list #1438

kjteske opened this issue Feb 18, 2018 · 1 comment · May be fixed by #3572
Labels
C: Symbols C: Syntax T: enhancement Improvement of existing language features

Comments

@kjteske
Copy link

kjteske commented Feb 18, 2018

For the following code snippet:

#import <Foundation/Foundation.h>
@interface Foo
-(void)methodWithArg:(BOOL)arg1 arg2:(BOOL)arg2;
@end

I would expect to see the method methodWithArg:arg2: as one symbol on the symbol list. Instead, this appears as two different symbols: methodWithArg: and arg2:.

This is extremely common and problematic for ObjC users.

image

@rwols
Copy link
Contributor

rwols commented Sep 17, 2018

Sorry for the extremely late response. I don't think there's a regular contributor that uses ObjC daily. While I use C++ a lot, this particular defect is not on my personal todo-list. If you're feeling adventurous, you could dig into the code yourself. Just run the command View Package File from the command palette, and then select Objective-C/Objective-C.sublime-syntax and start hacking away. If I search for the term entity.name.function in that file, I get five matches. So one of them (or possibly more) will have to be modified.

@deathaxe deathaxe added T: enhancement Improvement of existing language features C: Syntax C: Symbols labels Nov 18, 2022
deathaxe added a commit to deathaxe/sublime-packages that referenced this issue Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: Symbols C: Syntax T: enhancement Improvement of existing language features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants