summaryrefslogtreecommitdiffstats
path: root/tests/roots/test-directive-code/py-decorators.inc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/roots/test-directive-code/py-decorators.inc')
-rw-r--r--tests/roots/test-directive-code/py-decorators.inc15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/roots/test-directive-code/py-decorators.inc b/tests/roots/test-directive-code/py-decorators.inc
new file mode 100644
index 0000000..012d5d5
--- /dev/null
+++ b/tests/roots/test-directive-code/py-decorators.inc
@@ -0,0 +1,15 @@
+# Literally included file using Python highlighting
+
+@class_decorator
+@other_decorator()
+class TheClass(object):
+
+ @method_decorator
+ @other_decorator()
+ def the_method():
+ pass
+
+@function_decorator
+@other_decorator()
+def the_function():
+ pass