From 365680ddd1e3e49ef057a85ca10066ef254dd232 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sat, 6 Apr 2019 17:22:51 -0700 Subject: 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. --- checkman.txr | 30 +++++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) (limited to 'checkman.txr') 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) -- cgit v1.2.3