* mandoc(3) re-write update: mdoc(7) parsing w/badblocks
@ 2012-09-13 22:51 Kristaps Dzonsons
0 siblings, 0 replies; only message in thread
From: Kristaps Dzonsons @ 2012-09-13 22:51 UTC (permalink / raw)
To: discuss
[-- Attachment #1: Type: text/plain, Size: 674 bytes --]
Hello,
Enclosed is an update to my experimental mandoc(3) rewrite. Again, note
"experimental". However, this has a nice feature: it supports arbitrary
bad-block nesting in mdoc(7) in fairly few lines.
.Ao
.Aq foo Ac bar
.Aq foo Ao
bar
.Ac
.Aq Oo Ao Oc Ac
The first example has Ao interrupted by the Ac within an Aq; the second
has the scope of Aq extended by Ao (with Aq and Ao/Ac, the output is as
the input reads, but with It within, say, a -tag list, the scope of It
will be extended); and in the third, the scopes of Oo and Ao overlap.
Since the macro handlers are recursive, it's pretty easy to pull this
off, as you can see.
Best,
Kristaps
[-- Attachment #2: mdocml2.tar.gz --]
[-- Type: application/x-gzip, Size: 27054 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-09-13 22:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-13 22:51 mandoc(3) re-write update: mdoc(7) parsing w/badblocks Kristaps Dzonsons
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).