diff options
author | 2022-05-31 20:23:05 +0000 | |
---|---|---|
committer | 2022-05-31 20:23:05 +0000 | |
commit | bfab7104d861ff6e91e84c914c0f977343449298 (patch) | |
tree | 6d4648f1138aeb04731afc789a621012a21cab6c /regress/roff/ta | |
parent | ea452a23a02a06e590a1b863b12b3fa42b728535 (diff) | |
download | mandoc-bfab7104d861ff6e91e84c914c0f977343449298.tar.gz mandoc-bfab7104d861ff6e91e84c914c0f977343449298.tar.zst mandoc-bfab7104d861ff6e91e84c914c0f977343449298.zip |
Rudimentary implementation of the \A escape sequence, following groff
semantics (test identifier for syntactical validity), not at all
following the completely unrelated Heirloom semantics (define
hyperlink target position).
The main motivation for providing this implementation is to get \A
into the parsing class ESCAPE_EXPAND that corresponds to groff parsing
behaviour, which is quite similar to the \B escape sequence (test
numerical expression for syntactical validity). This is likely
to improve parsing of nested escape sequences in the future.
Validation isn't perfect yet. In particular, this implementation
rejects \A arguments containing some escape sequences that groff
allows to slip through. But that is unlikely to cause trouble even
in documents using \A for non-trivial purposes. Rejecting the nested
escapes in question might even improve robustnest because the rejected
names are unlikely to really be usable for practical purposes - no
matter that groff dubiously considers them syntactically valid.
Diffstat (limited to 'regress/roff/ta')
0 files changed, 0 insertions, 0 deletions