From 290d8e5ea5bc60cca765efb53867a73fa7bb0ef4 Mon Sep 17 00:00:00 2001 From: thatch Date: Wed, 13 Aug 2008 21:26:50 -0700 Subject: Bring Objective C lexer up to date with 2.0 features (properties and so-called "fast enumerations") --- tests/examplefiles/objc_example.m | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/examplefiles/objc_example.m (limited to 'tests/examplefiles/objc_example.m') diff --git a/tests/examplefiles/objc_example.m b/tests/examplefiles/objc_example.m new file mode 100644 index 00000000..c2a1c414 --- /dev/null +++ b/tests/examplefiles/objc_example.m @@ -0,0 +1,11 @@ +#import "Somefile.h" + +NSDictionary *dictionary = [NSDictionary dictionaryWithObjectsAndKeys: + @"quattuor", @"four", @"quinque", @"five", @"sex", @"six", nil]; + + +NSString *key; +for (key in dictionary) { + NSLog(@"English: %@, Latin: %@", key, [dictionary valueForKey:key]); +} + -- cgit v1.2.1