summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/suite/syntax/decorator.typ16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/suite/syntax/decorator.typ b/tests/suite/syntax/decorator.typ
new file mode 100644
index 00000000..b2d01d5f
--- /dev/null
+++ b/tests/suite/syntax/decorator.typ
@@ -0,0 +1,16 @@
+// Test decorators.
+
+--- decorator ---
+
+/! allow("unnecessary-stars")
+#[*a*]
+
+#{
+ /! allow("unnecessary-stars")
+ [*a*]
+}
+
+$
+ /! allow("unnecessary-stars")
+ #[*a*]
+$