Surprisingly, every escape sequence can also be used as an argument
authorschwarze <schwarze@openbsd.org>
Wed, 8 Jun 2022 13:08:00 +0000 (13:08 +0000)
committerschwarze <schwarze@openbsd.org>
Wed, 8 Jun 2022 13:08:00 +0000 (13:08 +0000)
commite44471f37d7134ba35ecb13703ab80d944ad4dfa
treebd45b5b95d61a974f0fd5a088bce36d67b9fde0b
parent958846eeae535759c3b9f7412b6b56b6a0540b37
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.
30 files changed:
regress/usr.bin/mandoc/char/C/Makefile [new file with mode: 0644]
regress/usr.bin/mandoc/char/C/delim.in [new file with mode: 0644]
regress/usr.bin/mandoc/char/C/delim.out_ascii [new file with mode: 0644]
regress/usr.bin/mandoc/char/C/delim.out_lint [new file with mode: 0644]
regress/usr.bin/mandoc/char/Makefile
regress/usr.bin/mandoc/char/N/Makefile
regress/usr.bin/mandoc/char/N/basic.out_lint [new file with mode: 0644]
regress/usr.bin/mandoc/char/N/delim.in [new file with mode: 0644]
regress/usr.bin/mandoc/char/N/delim.out_ascii [new file with mode: 0644]
regress/usr.bin/mandoc/char/N/delim.out_lint [new file with mode: 0644]
regress/usr.bin/mandoc/roff/esc/A1.in [new file with mode: 0644]
regress/usr.bin/mandoc/roff/esc/A1.out_ascii [new file with mode: 0644]
regress/usr.bin/mandoc/roff/esc/A1.out_lint [new file with mode: 0644]
regress/usr.bin/mandoc/roff/esc/B.in
regress/usr.bin/mandoc/roff/esc/B.out_ascii
regress/usr.bin/mandoc/roff/esc/B.out_lint
regress/usr.bin/mandoc/roff/esc/Makefile
regress/usr.bin/mandoc/roff/esc/h.in
regress/usr.bin/mandoc/roff/esc/h.out_ascii
regress/usr.bin/mandoc/roff/esc/h.out_lint
regress/usr.bin/mandoc/roff/esc/l.in
regress/usr.bin/mandoc/roff/esc/l.out_ascii
regress/usr.bin/mandoc/roff/esc/l.out_lint
regress/usr.bin/mandoc/roff/esc/o.in
regress/usr.bin/mandoc/roff/esc/o.out_ascii
regress/usr.bin/mandoc/roff/esc/o.out_lint [new file with mode: 0644]
regress/usr.bin/mandoc/roff/esc/w.in
regress/usr.bin/mandoc/roff/esc/w.out_ascii
regress/usr.bin/mandoc/roff/esc/w.out_lint
usr.bin/mandoc/roff_escape.c