Delete the "no blank before trailing delimiter" check from the
authorschwarze <schwarze@openbsd.org>
Tue, 6 Feb 2018 16:28:26 +0000 (16:28 +0000)
committerschwarze <schwarze@openbsd.org>
Tue, 6 Feb 2018 16:28:26 +0000 (16:28 +0000)
partial explicit macros.  Leah Neukirchen <leah at vuxu dot org>
rightfully points out that the check makes no sense for these macros.

regress/usr.bin/mandoc/mdoc/Aq/empty.out_lint
regress/usr.bin/mandoc/mdoc/Brq/empty.out_lint
regress/usr.bin/mandoc/mdoc/Oo/Makefile
regress/usr.bin/mandoc/mdoc/Oo/punct.in
regress/usr.bin/mandoc/mdoc/Oo/punct.out_ascii
regress/usr.bin/mandoc/mdoc/Oo/punct.out_lint [deleted file]
regress/usr.bin/mandoc/mdoc/Oo/punct.out_markdown
regress/usr.bin/mandoc/mdoc/Qq/empty.out_lint
regress/usr.bin/mandoc/mdoc/Sq/empty.out_lint
usr.bin/mandoc/mdoc_validate.c

index d0d8401..c2824c1 100644 (file)
@@ -1,2 +1 @@
 mandoc: empty.in:12:14: STYLE: no blank before trailing delimiter: Aq user@host:
-mandoc: empty.in:15:9: STYLE: no blank before trailing delimiter: Ao full:
index a7092ae..434bcdb 100644 (file)
@@ -1,2 +1 @@
 mandoc: empty.in:12:19: STYLE: no blank before trailing delimiter: Brq user@host)
-mandoc: empty.in:15:14: STYLE: no blank before trailing delimiter: Bro full)
index f79a4d0..7a85c83 100644 (file)
@@ -1,6 +1,5 @@
-# $OpenBSD: Makefile,v 1.4 2017/06/10 01:48:31 schwarze Exp $
+# $OpenBSD: Makefile,v 1.5 2018/02/06 16:28:26 schwarze Exp $
 
 REGRESS_TARGETS  = punct
-LINT_TARGETS    = punct
 
 .include <bsd.regress.mk>
index 59fd328..7c84c75 100644 (file)
@@ -1,5 +1,5 @@
-.\" $OpenBSD: punct.in,v 1.4 2017/07/04 14:53:26 schwarze Exp $
-.Dd $Mdocdate: July 4 2017 $
+.\" $OpenBSD: punct.in,v 1.5 2018/02/06 16:28:26 schwarze Exp $
+.Dd $Mdocdate: February 6 2018 $
 .Dt OO-PUNCT 1
 .Os
 .Sh NAME
@@ -22,7 +22,3 @@ at the end:
 .Oo Oo a (
 .Oc |
 .Oc
-.Pp
-missing blank:
-.Oo a.
-.Oc
index 6c4fbfa..91415a8 100644 (file)
@@ -10,6 +10,4 @@ D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
 
      at the end: [[a (] |]
 
-     missing blank: [a.]
-
 OpenBSD                          July 4, 2017                          OpenBSD
diff --git a/regress/usr.bin/mandoc/mdoc/Oo/punct.out_lint b/regress/usr.bin/mandoc/mdoc/Oo/punct.out_lint
deleted file mode 100644 (file)
index 9f9beaa..0000000
+++ /dev/null
@@ -1 +0,0 @@
-mandoc: punct.in:27:6: STYLE: no blank before trailing delimiter: Oo a.
index 879cd12..3789925 100644 (file)
@@ -1,2 +1 @@
 mandoc: empty.in:12:18: STYLE: no blank before trailing delimiter: Qq user@host)
-mandoc: empty.in:15:13: STYLE: no blank before trailing delimiter: Qo full)
index 00d8e22..1f1ccb4 100644 (file)
@@ -1,2 +1 @@
 mandoc: empty.in:12:18: STYLE: no blank before trailing delimiter: Sq user@host)
-mandoc: empty.in:15:13: STYLE: no blank before trailing delimiter: So full)
index 39bd00b..63280da 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: mdoc_validate.c,v 1.268 2017/09/12 18:20:32 schwarze Exp $ */
+/*     $OpenBSD: mdoc_validate.c,v 1.269 2018/02/06 16:28:26 schwarze Exp $ */
 /*
  * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
  * Copyright (c) 2010-2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -167,12 +167,12 @@ static    const v_post __mdoc_valids[MDOC_MAX - MDOC_Dd] = {
        post_hyph,      /* %T */ /* FIXME: can be used outside Rs/Re. */
        NULL,           /* %V */
        NULL,           /* Ac */
-       post_delim_nb,  /* Ao */
+       NULL,           /* Ao */
        post_delim_nb,  /* Aq */
        post_at,        /* At */
        NULL,           /* Bc */
        post_bf,        /* Bf */
-       post_delim_nb,  /* Bo */
+       NULL,           /* Bo */
        NULL,           /* Bq */
        post_xx,        /* Bsx */
        post_bx,        /* Bx */
@@ -192,16 +192,16 @@ static    const v_post __mdoc_valids[MDOC_MAX - MDOC_Dd] = {
        post_xx,        /* Ox */
        NULL,           /* Pc */
        NULL,           /* Pf */
-       post_delim_nb,  /* Po */
+       NULL,           /* Po */
        post_delim_nb,  /* Pq */
        NULL,           /* Qc */
        post_delim_nb,  /* Ql */
-       post_delim_nb,  /* Qo */
+       NULL,           /* Qo */
        post_delim_nb,  /* Qq */
        NULL,           /* Re */
        post_rs,        /* Rs */
        NULL,           /* Sc */
-       post_delim_nb,  /* So */
+       NULL,           /* So */
        post_delim_nb,  /* Sq */
        post_sm,        /* Sm */
        post_sx,        /* Sx */
@@ -212,7 +212,7 @@ static      const v_post __mdoc_valids[MDOC_MAX - MDOC_Dd] = {
        NULL,           /* Xo */
        post_fo,        /* Fo */
        NULL,           /* Fc */
-       post_delim_nb,  /* Oo */
+       NULL,           /* Oo */
        NULL,           /* Oc */
        post_bk,        /* Bk */
        NULL,           /* Ek */
@@ -225,7 +225,7 @@ static      const v_post __mdoc_valids[MDOC_MAX - MDOC_Dd] = {
        post_delim_nb,  /* Lk */
        post_defaults,  /* Mt */
        post_delim_nb,  /* Brq */
-       post_delim_nb,  /* Bro */
+       NULL,           /* Bro */
        NULL,           /* Brc */
        NULL,           /* %C */
        post_es,        /* Es */
@@ -528,8 +528,7 @@ post_delim_nb(POST_ARGS)
 
        /* At least three alphabetic words with a sentence ending. */
        if (strchr("!.:?", *lc) != NULL && (tok == MDOC_Em ||
-           tok == MDOC_Li || tok == MDOC_Po || tok == MDOC_Pq ||
-           tok == MDOC_Sy)) {
+           tok == MDOC_Li || tok == MDOC_Pq || tok == MDOC_Sy)) {
                nw = 0;
                for (cp = lc - 1; cp >= nch->string; cp--) {
                        if (*cp == ' ') {