Allow arbitrary argument delimiters for \C, like groff does.
authorschwarze <schwarze@openbsd.org>
Mon, 6 Jun 2022 12:09:18 +0000 (12:09 +0000)
committerschwarze <schwarze@openbsd.org>
Mon, 6 Jun 2022 12:09:18 +0000 (12:09 +0000)
commit7711a225cd97e0a314db2d8e50f6fdc2db0aec9d
tree9d7850941a743c2ce7c06cfd573b8b4cbd8e6187
parentc4eb6273a63be35f1138434c92dd98260616aa88
Allow arbitrary argument delimiters for \C, like groff does.
The restriction of only allowing ' as the delimiter was introduced
by kristaps@ on 2011/04/09 when he first supported \C.
For most other escape sequences, similar restrictions were relaxed
later on, but for the rarely used \C, it was apparently forgotten.

While here, reject empty character names: they are never valid.
usr.bin/mandoc/roff_escape.c