summaryrefslogtreecommitdiffstats
path: root/checkman.txr
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-10-23 18:09:37 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-10-23 18:09:37 -0700
commita513b69fd9b1e0f3925f1e33d44fe127dbb858e5 (patch)
treed03026f72b9cf901499932e5eac843fb2290c025 /checkman.txr
parentfbbdb0a37edf93b93bc030e9136bf24caf899c9f (diff)
downloadtxr-a513b69fd9b1e0f3925f1e33d44fe127dbb858e5.tar.gz
txr-a513b69fd9b1e0f3925f1e33d44fe127dbb858e5.tar.bz2
txr-a513b69fd9b1e0f3925f1e33d44fe127dbb858e5.zip
doc: missing plurals in headings, missing .desc.
* checkman.txr (check-func): Check for excess elements in singular heading. Add exception for headings that have Operator and macro. * txr.1: Missing plural in chr-ixdigit and chr-xdigit heading. Same in hash-begin and hash-next, plus missing desc.
Diffstat (limited to 'checkman.txr')
-rw-r--r--checkman.txr6
1 files changed, 5 insertions, 1 deletions
diff --git a/checkman.txr b/checkman.txr
index 024c83f9..af6b4056 100644
--- a/checkman.txr
+++ b/checkman.txr
@@ -51,11 +51,15 @@
@ (cases)
.coNP Operator/function @(skip)
@ (or)
+.coNP Operator @@ @op and macro @@ @mac
+@ (or)
.coNP @{type /Function|Operator|Macro/}s@(assert bad ln `bad @{type}s heading`)@(rep :gap 0) @@, @{x /\S+/}@(last :mandatory) @@ @y and @@ @{z /\S+/}@(end)
@ (assert bad ln `no .synb after @{type}s heading`)
@ (check-synb)
@ (or)
-.coNP @{type /Function|Operator|Macro/}@(assert bad ln `bad @type heading`) @@ @{x /\S+/}
+.coNP @{type /Function|Operator|Macro/}@(assert bad ln `bad @type heading`) @@ @{x /\S+/}@junk
+@ (assert bad ln `extra elements in singular @type heading`)
+@ (bind junk "")
@ (assert bad ln `no .synb after @type heading`)
@ (check-synb)
@ (end)