summaryrefslogtreecommitdiff
path: root/tests/suite
diff options
context:
space:
mode:
authorIan Wrzesinski <133046678+wrzian@users.noreply.github.com>2024-11-01 05:45:08 -0400
committerGitHub <noreply@github.com>2024-11-01 09:45:08 +0000
commita70b8a56ef17d493c8ebf8c3fee6f86b4bb1e994 (patch)
tree7cd9acac3dbfc9bf76622e23f3569aed60b41e81 /tests/suite
parent23313b0af0e9a70f313863db6bb1f5f5beca7de4 (diff)
Disallow space between ident and paren in set rule (#5269)
Diffstat (limited to 'tests/suite')
-rw-r--r--tests/suite/styling/set.typ15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/suite/styling/set.typ b/tests/suite/styling/set.typ
index ea4c0d84..89bf069e 100644
--- a/tests/suite/styling/set.typ
+++ b/tests/suite/styling/set.typ
@@ -65,6 +65,21 @@ Hello *#x*
// Error: 12-26 set is only allowed directly in code and content blocks
#{ let x = set text(blue) }
+--- set-bad-trivia ---
+// Error cases parsing set rules with trivia between the function and args.
+// Error: 10 expected argument list
+#set page
+ (numbering: "1")
+// Error: 10 expected argument list
+// Hint: 10 there may not be any spaces before the argument list
+#set page (numbering: "2")
+// Error: 10 expected argument list
+// Hint: 10 there may not be any spaces before the argument list
+#set page/**/(numbering: "3")
+
+// This is fine though
+#set/**/page(numbering: "4")
+
--- set-vs-construct-1 ---
// Ensure that constructor styles aren't passed down the tree.
// The inner list should have no extra indent.