summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPgBiel <9021226+PgBiel@users.noreply.github.com>2024-06-20 22:20:39 -0300
committerPgBiel <9021226+PgBiel@users.noreply.github.com>2024-06-26 12:17:53 -0300
commitfdfd880f63ee6501c8d2af59db5c738de31debd8 (patch)
tree3acd7c21ec061913184480c71a3cd62924688478
parent9f9e8770b8ea9c637ce4dc14e2e28c50c2d2d1ba (diff)
add decorator 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*]
+$