From 88d09deb893505c936316537673cfbf30be47558 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Wed, 8 Jun 2022 13:23:57 +0000 Subject: Surprisingly, every escape sequence can also be used as an argument delimiter for an outer escape sequence, in which case the delimiting escape sequence retains its syntax but usually ignores its argument and loses its inherent effect. Add rudimentary support for this syntax quirk in order to improve parsing compatibility with groff. --- regress/roff/esc/w.out_ascii | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'regress/roff/esc/w.out_ascii') diff --git a/regress/roff/esc/w.out_ascii b/regress/roff/esc/w.out_ascii index 3b8650a1..7ed32ece 100644 --- a/regress/roff/esc/w.out_ascii +++ b/regress/roff/esc/w.out_ascii @@ -8,6 +8,23 @@ DDEESSCCRRIIPPTTIIOONN character: 24 blank: 24 text: 96 + + AArrgguummeenntt ddeelliimmiitteerrss + unsupported \r: 24u + ignored \&: 24u + useless \.: 24u + invalid \G: 24u + special \-: 24u + break \p: 24u + nospace \c: 24u + string expansion: 24u + register expansion: 24u + ignored \ON: 24u + special character: 24u + ignored \Z'str': 24u + horizontal motion: 24u + horizontal line: 24u + overstrike: 24u unterminated: 72 -OpenBSD July 4, 2017 OpenBSD +OpenBSD June 8, 2022 OpenBSD -- cgit v1.2.3-56-ge451