diff options
-rw-r--r-- | mdoc_validate.c | 17 | ||||
-rw-r--r-- | regress/mdoc/Aq/empty.out_lint | 1 | ||||
-rw-r--r-- | regress/mdoc/Brq/empty.out_lint | 1 | ||||
-rw-r--r-- | regress/mdoc/Oo/Makefile | 1 | ||||
-rw-r--r-- | regress/mdoc/Oo/punct.in | 4 | ||||
-rw-r--r-- | regress/mdoc/Oo/punct.out_ascii | 2 | ||||
-rw-r--r-- | regress/mdoc/Oo/punct.out_lint | 1 | ||||
-rw-r--r-- | regress/mdoc/Oo/punct.out_markdown | 3 | ||||
-rw-r--r-- | regress/mdoc/Qq/empty.out_lint | 1 | ||||
-rw-r--r-- | regress/mdoc/Sq/empty.out_lint | 1 |
10 files changed, 8 insertions, 24 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c index a14cb9d0..011d47ac 100644 --- a/mdoc_validate.c +++ b/mdoc_validate.c @@ -169,12 +169,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 */ @@ -194,16 +194,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 */ @@ -214,7 +214,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 */ @@ -227,7 +227,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 */ @@ -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 == ' ') { diff --git a/regress/mdoc/Aq/empty.out_lint b/regress/mdoc/Aq/empty.out_lint index d0d8401a..c2824c15 100644 --- a/regress/mdoc/Aq/empty.out_lint +++ b/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: diff --git a/regress/mdoc/Brq/empty.out_lint b/regress/mdoc/Brq/empty.out_lint index a7092ae5..434bcdb6 100644 --- a/regress/mdoc/Brq/empty.out_lint +++ b/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) diff --git a/regress/mdoc/Oo/Makefile b/regress/mdoc/Oo/Makefile index e98c9475..67bf2449 100644 --- a/regress/mdoc/Oo/Makefile +++ b/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> diff --git a/regress/mdoc/Oo/punct.in b/regress/mdoc/Oo/punct.in index 7ca4a6a2..d1abf8fe 100644 --- a/regress/mdoc/Oo/punct.in +++ b/regress/mdoc/Oo/punct.in @@ -22,7 +22,3 @@ at the end: .Oo Oo a ( .Oc | .Oc -.Pp -missing blank: -.Oo a. -.Oc diff --git a/regress/mdoc/Oo/punct.out_ascii b/regress/mdoc/Oo/punct.out_ascii index 6c4fbfa3..91415a89 100644 --- a/regress/mdoc/Oo/punct.out_ascii +++ b/regress/mdoc/Oo/punct.out_ascii @@ -10,6 +10,4 @@ DDEESSCCRRIIPPTTIIOONN at the end: [[a (] |] - missing blank: [a.] - OpenBSD July 4, 2017 OpenBSD diff --git a/regress/mdoc/Oo/punct.out_lint b/regress/mdoc/Oo/punct.out_lint deleted file mode 100644 index 9f9beaae..00000000 --- a/regress/mdoc/Oo/punct.out_lint +++ /dev/null @@ -1 +0,0 @@ -mandoc: punct.in:27:6: STYLE: no blank before trailing delimiter: Oo a. diff --git a/regress/mdoc/Oo/punct.out_markdown b/regress/mdoc/Oo/punct.out_markdown index 5ad93965..8c530fa8 100644 --- a/regress/mdoc/Oo/punct.out_markdown +++ b/regress/mdoc/Oo/punct.out_markdown @@ -20,7 +20,4 @@ at the end: \[\[a (] |] -missing blank: -\[a.] - OpenBSD - July 4, 2017 diff --git a/regress/mdoc/Qq/empty.out_lint b/regress/mdoc/Qq/empty.out_lint index 879cd127..3789925c 100644 --- a/regress/mdoc/Qq/empty.out_lint +++ b/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) diff --git a/regress/mdoc/Sq/empty.out_lint b/regress/mdoc/Sq/empty.out_lint index 00d8e228..1f1ccb40 100644 --- a/regress/mdoc/Sq/empty.out_lint +++ b/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) |