source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mandoc: Delete the "no blank before trailing delimiter" check from the
@ 2018-02-06 16:30 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2018-02-06 16:30 UTC (permalink / raw)
  To: source

Log Message:
-----------
Delete the "no blank before trailing delimiter" check from the 
partial explicit macros.  Leah Neukirchen <leah at vuxu dot org>
rightfully points out that the check makes no sense for these macros.

Modified Files:
--------------
    mandoc:
        mdoc_validate.c
    mandoc/regress/mdoc/Aq:
        empty.out_lint
    mandoc/regress/mdoc/Brq:
        empty.out_lint
    mandoc/regress/mdoc/Oo:
        Makefile
        punct.in
        punct.out_ascii
        punct.out_markdown
    mandoc/regress/mdoc/Qq:
        empty.out_lint
    mandoc/regress/mdoc/Sq:
        empty.out_lint

Removed Files:
-------------
    mandoc/regress/mdoc/Oo:
        punct.out_lint

Revision Data
-------------
Index: empty.out_lint
===================================================================
RCS file: /home/cvs/mandoc/mandoc/regress/mdoc/Brq/empty.out_lint,v
retrieving revision 1.5
retrieving revision 1.6
diff -Lregress/mdoc/Brq/empty.out_lint -Lregress/mdoc/Brq/empty.out_lint -u -p -r1.5 -r1.6
--- regress/mdoc/Brq/empty.out_lint
+++ regress/mdoc/Brq/empty.out_lint
@@ -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: mdoc_validate.c
===================================================================
RCS file: /home/cvs/mandoc/mandoc/mdoc_validate.c,v
retrieving revision 1.353
retrieving revision 1.354
diff -Lmdoc_validate.c -Lmdoc_validate.c -u -p -r1.353 -r1.354
--- mdoc_validate.c
+++ mdoc_validate.c
@@ -169,12 +169,12 @@ static	const v_post __mdoc_valids[MDOC_M
 	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 */
@@ -194,16 +194,16 @@ static	const v_post __mdoc_valids[MDOC_M
 	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 */
@@ -214,7 +214,7 @@ static	const v_post __mdoc_valids[MDOC_M
 	NULL,		/* Xo */
 	post_fo,	/* Fo */
 	NULL,		/* Fc */
-	post_delim_nb,	/* Oo */
+	NULL,		/* Oo */
 	NULL,		/* Oc */
 	post_bk,	/* Bk */
 	NULL,		/* Ek */
@@ -227,7 +227,7 @@ static	const v_post __mdoc_valids[MDOC_M
 	post_delim_nb,	/* Lk */
 	post_defaults,	/* Mt */
 	post_delim_nb,	/* Brq */
-	post_delim_nb,	/* Bro */
+	NULL,		/* Bro */
 	NULL,		/* Brc */
 	NULL,		/* %C */
 	post_es,	/* Es */
@@ -530,8 +530,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 == ' ') {
Index: empty.out_lint
===================================================================
RCS file: /home/cvs/mandoc/mandoc/regress/mdoc/Qq/empty.out_lint,v
retrieving revision 1.5
retrieving revision 1.6
diff -Lregress/mdoc/Qq/empty.out_lint -Lregress/mdoc/Qq/empty.out_lint -u -p -r1.5 -r1.6
--- regress/mdoc/Qq/empty.out_lint
+++ regress/mdoc/Qq/empty.out_lint
@@ -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: empty.out_lint
===================================================================
RCS file: /home/cvs/mandoc/mandoc/regress/mdoc/Aq/empty.out_lint,v
retrieving revision 1.5
retrieving revision 1.6
diff -Lregress/mdoc/Aq/empty.out_lint -Lregress/mdoc/Aq/empty.out_lint -u -p -r1.5 -r1.6
--- regress/mdoc/Aq/empty.out_lint
+++ regress/mdoc/Aq/empty.out_lint
@@ -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: Makefile
===================================================================
RCS file: /home/cvs/mandoc/mandoc/regress/mdoc/Oo/Makefile,v
retrieving revision 1.4
retrieving revision 1.5
diff -Lregress/mdoc/Oo/Makefile -Lregress/mdoc/Oo/Makefile -u -p -r1.4 -r1.5
--- regress/mdoc/Oo/Makefile
+++ regress/mdoc/Oo/Makefile
@@ -1,6 +1,5 @@
 # $OpenBSD: Makefile,v 1.1 2012/07/07 14:10:55 schwarze Exp $
 
 REGRESS_TARGETS  = punct
-LINT_TARGETS	 = punct
 
 .include <bsd.regress.mk>
Index: punct.out_ascii
===================================================================
RCS file: /home/cvs/mandoc/mandoc/regress/mdoc/Oo/punct.out_ascii,v
retrieving revision 1.4
retrieving revision 1.5
diff -Lregress/mdoc/Oo/punct.out_ascii -Lregress/mdoc/Oo/punct.out_ascii -u -p -r1.4 -r1.5
--- regress/mdoc/Oo/punct.out_ascii
+++ regress/mdoc/Oo/punct.out_ascii
@@ -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
--- regress/mdoc/Oo/punct.out_lint
+++ /dev/null
@@ -1 +0,0 @@
-mandoc: punct.in:27:6: STYLE: no blank before trailing delimiter: Oo a.
Index: punct.in
===================================================================
RCS file: /home/cvs/mandoc/mandoc/regress/mdoc/Oo/punct.in,v
retrieving revision 1.4
retrieving revision 1.5
diff -Lregress/mdoc/Oo/punct.in -Lregress/mdoc/Oo/punct.in -u -p -r1.4 -r1.5
--- regress/mdoc/Oo/punct.in
+++ regress/mdoc/Oo/punct.in
@@ -22,7 +22,3 @@ at the end:
 .Oo Oo a (
 .Oc |
 .Oc
-.Pp
-missing blank:
-.Oo a.
-.Oc
Index: punct.out_markdown
===================================================================
RCS file: /home/cvs/mandoc/mandoc/regress/mdoc/Oo/punct.out_markdown,v
retrieving revision 1.4
retrieving revision 1.5
diff -Lregress/mdoc/Oo/punct.out_markdown -Lregress/mdoc/Oo/punct.out_markdown -u -p -r1.4 -r1.5
--- regress/mdoc/Oo/punct.out_markdown
+++ regress/mdoc/Oo/punct.out_markdown
@@ -20,7 +20,4 @@ at the end:
 \[\[a (]
 |]
 
-missing blank:
-\[a.]
-
 OpenBSD - July 4, 2017
Index: empty.out_lint
===================================================================
RCS file: /home/cvs/mandoc/mandoc/regress/mdoc/Sq/empty.out_lint,v
retrieving revision 1.5
retrieving revision 1.6
diff -Lregress/mdoc/Sq/empty.out_lint -Lregress/mdoc/Sq/empty.out_lint -u -p -r1.5 -r1.6
--- regress/mdoc/Sq/empty.out_lint
+++ regress/mdoc/Sq/empty.out_lint
@@ -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)
--
 To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-02-06 16:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-06 16:30 mandoc: Delete the "no blank before trailing delimiter" check from the schwarze

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).