summaryrefslogtreecommitdiff
path: root/tests/examplefiles/objc_example.m
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-06-18 12:02:59 +0200
committerGeorg Brandl <georg@python.org>2011-06-18 12:02:59 +0200
commit0131fa0a15b442550367b477e24aa99640b4a99b (patch)
tree3bf634573ed9e792978179e283ad402cd4f554ba /tests/examplefiles/objc_example.m
parentd42e51c060bbaeef64863f53e2cfbfbcfcecdbb9 (diff)
downloadpygments-0131fa0a15b442550367b477e24aa99640b4a99b.tar.gz
Recognize methods in the ObjC lexer (#638).
Diffstat (limited to 'tests/examplefiles/objc_example.m')
-rw-r--r--tests/examplefiles/objc_example.m14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/examplefiles/objc_example.m b/tests/examplefiles/objc_example.m
index c2a1c414..cb5c0975 100644
--- a/tests/examplefiles/objc_example.m
+++ b/tests/examplefiles/objc_example.m
@@ -1,5 +1,19 @@
#import "Somefile.h"
+@implementation ABC
+
+- (id)a:(B)b {
+ return 1;
+}
+
+@end
+
+@implementation ABC
+
+- (void)xyz;
+
+@end
+
NSDictionary *dictionary = [NSDictionary dictionaryWithObjectsAndKeys:
@"quattuor", @"four", @"quinque", @"five", @"sex", @"six", nil];