diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2022-06-08 13:23:57 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2022-06-08 13:23:57 +0000 |
commit | 8b67872465026c8a36f46c94ab7c3c9cf281ba79 (patch) | |
tree | 23a341c363e8430f41e73eaa3f7b2faed547674a /regress/roff/esc/w.in | |
parent | a20dce04f17b9130249adc2db887746a87808270 (diff) | |
download | mandoc-8b67872465026c8a36f46c94ab7c3c9cf281ba79.tar.gz |
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.
Diffstat (limited to 'regress/roff/esc/w.in')
-rw-r--r-- | regress/roff/esc/w.in | 36 |
1 files changed, 35 insertions, 1 deletions
diff --git a/regress/roff/esc/w.in b/regress/roff/esc/w.in index 3012df34..c30a31ac 100644 --- a/regress/roff/esc/w.in +++ b/regress/roff/esc/w.in @@ -1,4 +1,4 @@ -.\" $OpenBSD: w.in,v 1.3 2017/07/04 14:53:27 schwarze Exp $ +.\" $OpenBSD: w.in,v 1.4 2022/06/08 13:08:00 schwarze Exp $ .Dd $Mdocdate$ .Dt ESC-W 1 .Os @@ -13,5 +13,39 @@ character: \w'n' blank: \w' ' .br text: \w'text' +.Ss Argument delimiters +unsupported \er: \w\rM\ru +.br +ignored \e&: \w\&M\&u +.br +useless \e.: \w\.M.u +.br +invalid \eG: \w\GMGu +.br +special \e-: \w\-M\-u +.br +break \ep: \w\pM\pu +.br +nospace \ec: \w\cM\cu +.\".br +.\"XXX skipchar \ec: \w\zM\zu +.br +.ds mystr xMxu +string expansion: \w\*[mystr] +.br +.nr myreg 121 +register expansion: \w\n[myreg]u +.br +ignored \eON: \w\O1M\O2u +.br +special character: \w\(hyM\(hyu +.br +ignored \eZ\(aqstr\(aq: \w\Z'foo'M\Z'bar'u +.br +horizontal motion: \w\h'1'M\h'3'u +.br +horizontal line: \w\l'4'M\l'2'u +.br +overstrike: \w\o'ab'M\o'cd'u .br unterminated: \w'foo |