diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-06-04 00:13:15 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-06-04 00:13:15 +0000 |
commit | afcc0a6de7e295d807dddcf20b26811ab1e7803c (patch) | |
tree | 76794e8ec7bb9e27f2b19bec6d03de49933df4fa /roff.7 | |
parent | 90897efbceb54855c1943f8e19d5bba5a542ff65 (diff) | |
download | mandoc-afcc0a6de7e295d807dddcf20b26811ab1e7803c.tar.gz |
Pure preprocessor implementation of the roff(7) .ec and .eo requests
(escape character control), touching nothing after the preprocessing
stage and keeping even the state variable local to the preprocessor.
Since the escape character is also used for line continuation, this
requires pulling the implementation of line continuation from the
input reader to the preprocessor, which also considerably shortens
the code required for that.
When the escape character is changed, simply let the preprocessor
replace bare by escaped backslashes and instances of the non-standard
escape character with bare backslashes - that's all we need.
Oh, and if anybody dares to use these requests in OpenBSD manuals,
sending a medium-sized pack of axe-murderers after them might be a
worthwhile part of the punishment, but probably insuffient on its own.
Diffstat (limited to 'roff.7')
-rw-r--r-- | roff.7 | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -808,8 +808,11 @@ This is a Heirloom extension and currently unsupported. Set a trap within a diversion. Currently unsupported. .It Ic \&ec Op Ar char -Change the escape character. -Currently unsupported. +Enable the escape mechanism and change the escape character. +The +.Ar char +argument defaults to the backslash +.Pq Sq \e . .It Ic \&ecr Restore the escape character. Currently unsupported. @@ -839,7 +842,6 @@ See .Ic \&EQ . .It Ic \&eo Disable the escape mechanism completely. -Currently unsupported. .It Ic \&EP End a picture started by .Ic \&BP . |