summaryrefslogtreecommitdiffstats
path: root/regress/roff/cond/de.out_lint
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2020-08-03 11:02:57 +0000
committerIngo Schwarze <schwarze@openbsd.org>2020-08-03 11:02:57 +0000
commitc1e37572ba6067152750a7c237a80328c4cad0ee (patch)
tree09706c0c82f4fee63839ab839311b9e17bcd7337 /regress/roff/cond/de.out_lint
parent5b4cf1561a643f1c2c419e4cc5f2d90813652057 (diff)
downloadmandoc-c1e37572ba6067152750a7c237a80328c4cad0ee.tar.gz
Put the code handling \} into a new function roff_cond_checkend()
and call that function not only from both places where copies existed - when processing text lines and when processing request/macro lines in conditional block scope - but also when closing a macro definition request, such that this construction works: .if n \{.de macroname macro content .. \} ignored arguments .macroname This fixes a bug reported by John Gardner <gardnerjohng at gmail dot com>. While here, avoid a confusing decrement of the line scope counter in roffnode_cleanscope() for conditional blocks that do not have line scope in the first place (no functional change for this part). Also improve validation of an internal invariant in roff_cblock() and polish some comments.
Diffstat (limited to 'regress/roff/cond/de.out_lint')
-rw-r--r--regress/roff/cond/de.out_lint2
1 files changed, 2 insertions, 0 deletions
diff --git a/regress/roff/cond/de.out_lint b/regress/roff/cond/de.out_lint
new file mode 100644
index 00000000..1c61d9d4
--- /dev/null
+++ b/regress/roff/cond/de.out_lint
@@ -0,0 +1,2 @@
+mandoc: de.in:11:4: ERROR: skipping all arguments: .. \&ignored
+mandoc: de.in:18:2: ERROR: skipping unknown macro: .m3