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_lint | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'regress/roff/esc/w.out_lint') diff --git a/regress/roff/esc/w.out_lint b/regress/roff/esc/w.out_lint index 11dfbef5..fd2a0948 100644 --- a/regress/roff/esc/w.out_lint +++ b/regress/roff/esc/w.out_lint @@ -1 +1,4 @@ -mandoc: w.in:17:15: ERROR: incomplete escape sequence: \w'foo +mandoc: w.in:17:20: UNSUPP: unsupported escape sequence: \r +mandoc: w.in:17:23: UNSUPP: unsupported escape sequence: \r +mandoc: w.in:23:16: WARNING: undefined escape, printing literally: \G +mandoc: w.in:51:15: ERROR: incomplete escape sequence: \w'foo -- cgit v1.2.3-56-ge451