summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2013-01-10 22:06:46 +0100
committerGeorg Brandl <georg@python.org>2013-01-10 22:06:46 +0100
commit77ba79b75a2660af2cfd8ae9a072b9d56ccd961d (patch)
treef0fb41a6fed23122ad5c9693b201e22c35cba3ab /tests
parent00ebe18996d37459f6ea40c6966bbe0f09841ccc (diff)
parentdab1c1d46465274ecd127c45591151bfdae142c6 (diff)
downloadpygments-77ba79b75a2660af2cfd8ae9a072b9d56ccd961d.tar.gz
merge heads
Diffstat (limited to 'tests')
-rw-r--r--tests/examplefiles/logos_example.xm28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/examplefiles/logos_example.xm b/tests/examplefiles/logos_example.xm
new file mode 100644
index 00000000..39753e23
--- /dev/null
+++ b/tests/examplefiles/logos_example.xm
@@ -0,0 +1,28 @@
+%hook ABC
+- (id)a:(B)b {
+ %log;
+ return %orig(nil);
+}
+%end
+
+%subclass DEF: NSObject
+- (id)init {
+ [%c(RuntimeAccessibleClass) alloc];
+ return nil;
+}
+%end
+
+%group OptionalHooks
+%hook ABC
+- (void)release {
+ [self retain];
+ %orig;
+}
+%end
+%end
+
+%ctor {
+ %init;
+ if(OptionalCondition)
+ %init(OptionalHooks);
+}