From eebd7f49fe077d3180d53ed869636249c125dc21 Mon Sep 17 00:00:00 2001 From: PgBiel <9021226+PgBiel@users.noreply.github.com> Date: Thu, 27 Jun 2024 19:08:25 -0300 Subject: [PATCH] test allow with context no tracepoints there --- tests/suite/syntax/decorator.typ | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/suite/syntax/decorator.typ b/tests/suite/syntax/decorator.typ index 04261e081..cfc78dc9f 100644 --- a/tests/suite/syntax/decorator.typ +++ b/tests/suite/syntax/decorator.typ @@ -127,3 +127,17 @@ this is ok // Warning: 3-5 no text within stars // Hint: 3-5 using multiple consecutive stars (e.g. **) has no additional effect #[**] + +--- allow-doesnt-suppress-warn-in-nested-context --- +// Warning: 2:14-2:27 unknown font family: unbeknownst +#let f() = context { + text(font: "Unbeknownst")[] +} + +/! allow("unknown-font-families") +#f() + +/! allow("unknown-font-families") +#context { + text(font: "Unbeknownst")[] +}