Hi,
If have a tiny problem since I'm using NSLocalizedString a lot in a project. We had a similar discussion at irc a couple of months ago and maybe I came across with a solution.
E.g. you have the following Objective-C++ file:
@implementation AClass
- (void)foo:(NSDictionary *)w { MyFun(NSLocalizedString(@"Error", @"error"), NSLocalizedString(@"OK", @"OK"), nil, nil, tableWindow, self, nil, nil, nil, NSLocalizedString(@"bla", @"bla")); NSBeep(); }
- (void)foo2:(NSDictionary *)w {
}
you'll see in the Symbol List: AClass - foo: NSLocalizedString NSBeep - foo2:
which could be sometimes useful but the NS... stuff disturb generally. Then I looked at the Objective-C++ Language definitions and I found:
... patterns = ( { include = 'source.c++'; }, { include = 'source.objc'; }, ); ...
This means that 'source.c++' will be processed before 'source.objc'. By my opinion this is the wrong order. Because if I change this into: ... patterns = ( { include = 'source.objc'; }, { include = 'source.c++'; }, ); ...
I get for the above example the correct Symbol List: AClass - foo: - foo2:
Are there any reasons for that language grammar order?
Regards, --Hans
On 4 Mar 2010, at 10:50, Hans-Jörg Bibiko wrote:
[…] patterns = ( { include = 'source.objc'; }, { include = 'source.c++'; }, ); […] Are there any reasons for that language grammar order?
Joachimm tells me that swapping them will cause other problems.
When I provide unit tests for grammars we should revise the {Obj-}C{+ +} ;) it’s become rather complex…
Allan, thanks for the reply.
On 4 Mar 2010, at 10:50, Hans-Jörg Bibiko wrote:
[…] patterns = ( { include = 'source.objc'; }, { include = 'source.c++'; }, ); […] Are there any reasons for that language grammar order?
Joachimm tells me that swapping them will cause other problems.
That I had already thought ;)
When I provide unit tests for grammars we should revise the {Obj-}C{++} ;) it’s become rather complex…
Not rather it is very complex ;)
Cheers, --Hans