diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-04-06 17:22:51 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-04-06 17:22:51 -0700 |
commit | 365680ddd1e3e49ef057a85ca10066ef254dd232 (patch) | |
tree | bb6b380709ff8155f8cfaf19ce16f15e78d58243 /checkman.txr | |
parent | 61e6eee0f3af7e953fdb50b3d73e51eb32a38a1b (diff) | |
download | txr-365680ddd1e3e49ef057a85ca10066ef254dd232.tar.gz txr-365680ddd1e3e49ef057a85ca10066ef254dd232.tar.bz2 txr-365680ddd1e3e49ef057a85ca10066ef254dd232.zip |
doc: split .cblk into .verb and .mono
* txr.1 (.cblk, .cble): Macros renamed to .mono and .onom
respectively.
(.verb, .brev): New macros. These are like .cblk and .cble but
instead of just switching the font, they switch in and out of
non-formatting mode also with .nf/.fi.
Everywhere in the document, .cblk/.cble used for just font
changes are replaced with .mono/.onom, and those instances
used for preformatted code blocks are replaced with
.verb/.brev.
* checkman.txr (check-cblk): Removed.
(check-mono, check-verb): New pattern functions.
Diffstat (limited to 'checkman.txr')
-rw-r--r-- | checkman.txr | 30 |
1 files changed, 23 insertions, 7 deletions
diff --git a/checkman.txr b/checkman.txr index dcc126ac..dcbf99e7 100644 --- a/checkman.txr +++ b/checkman.txr @@ -86,17 +86,31 @@ @ (end) @(end) @;; -@;; Check .cblk/.cble pairing +@;; Check .mono/.onom pairing @;; -@(define check-cblk ()) -.cblk -@ (assert bad ln `.cblk not closed`) +@(define check-mono ()) +.mono +@ (assert bad ln `.mono not closed`) @ (repeat :gap 0) @ (none) -.cblk +.mono @ (end) @ (last :mandatory) -.cble +.onom +@ (end) +@(end) +@;; +@;; Check .verb/.brev pairing +@;; +@(define check-verb ()) +.verb +@ (assert bad ln `.verb not closed`) +@ (repeat :gap 0) +@ (none) +.verb +@ (end) +@ (last :mandatory) +.brev @ (end) @(end) @;; @@ -121,7 +135,9 @@ @ (or) @ (check-code) @ (or) -@ (check-cblk) +@ (check-verb) +@ (or) +@ (check-mono) @ (or) @ (check-synb) @ (or) |