summaryrefslogtreecommitdiffstats
path: root/regress/roff/cond/Makefile
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/Makefile
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/Makefile')
-rw-r--r--regress/roff/cond/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/regress/roff/cond/Makefile b/regress/roff/cond/Makefile
index 65d7be52..758049cf 100644
--- a/regress/roff/cond/Makefile
+++ b/regress/roff/cond/Makefile
@@ -1,6 +1,6 @@
-# $OpenBSD: Makefile,v 1.8 2015/05/31 23:12:17 schwarze Exp $
+# $OpenBSD: Makefile,v 1.10 2020/08/03 10:52:39 schwarze Exp $
-REGRESS_TARGETS = if ie close numeric register strcmp string before-Dd
-LINT_TARGETS = if close
+REGRESS_TARGETS = if ie close de numeric register strcmp string before-Dd
+LINT_TARGETS = if close de
.include <bsd.regress.mk>