From 4739b39372b31b9276373673e199b90e33fb70a8 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Thu, 28 Apr 2022 10:26:37 +0000 Subject: Element next-line scopes may nest, so man_breakscope() may have to break multiple element next-line scopes at the same time, similar to what man_descope() already does for unconditional rewinding. This fixes an assertion failure that tb@ found with afl(1), caused by .SH .I .I .BI and similar sequences of macros without arguments. --- regress/man/B/nest.out_lint | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 regress/man/B/nest.out_lint (limited to 'regress/man/B/nest.out_lint') diff --git a/regress/man/B/nest.out_lint b/regress/man/B/nest.out_lint new file mode 100644 index 00000000..dd6ba7bd --- /dev/null +++ b/regress/man/B/nest.out_lint @@ -0,0 +1,6 @@ +mandoc: nest.in:12:2: WARNING: line scope broken: IR breaks SM +mandoc: nest.in:11:2: WARNING: line scope broken: IR breaks B +mandoc: nest.in:15:2: WARNING: line scope broken: SH breaks SM +mandoc: nest.in:14:2: WARNING: line scope broken: SH breaks B +mandoc: nest.in:18:2: WARNING: line scope broken: RI breaks B +mandoc: nest.in:17:2: WARNING: line scope broken: RI breaks B -- cgit v1.2.3-56-ge451