summaryrefslogtreecommitdiffstats
path: root/regress/mdoc/Ns/position.in
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-06-27 12:18:00 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-06-27 12:18:00 +0000
commite9817d1eee252f2a60704c140932abd01803441b (patch)
treecbeb21eb9bd60a58cd0da3b9275fbc86284fda68 /regress/mdoc/Ns/position.in
parent7a652daded74f9e8becb34e9dca1d6202eae46fe (diff)
downloadmandoc-e9817d1eee252f2a60704c140932abd01803441b.tar.gz
warn about .Ns macros that have no effect because they are followed
by an isolated closing delimiter; inspired by mdoclint
Diffstat (limited to 'regress/mdoc/Ns/position.in')
-rw-r--r--regress/mdoc/Ns/position.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/regress/mdoc/Ns/position.in b/regress/mdoc/Ns/position.in
index 1325df25..56fc5de6 100644
--- a/regress/mdoc/Ns/position.in
+++ b/regress/mdoc/Ns/position.in
@@ -1,4 +1,4 @@
-.Dd September 15, 2013
+.Dd June 27, 2017
.Dt NS-POSITION 1
.Os OpenBSD
.Sh NAME
@@ -20,6 +20,12 @@ After some macro and a block closing:
In the middle of a macro line:
.Oo before Oc Ns Op after
.Pp
+After closing punctuation:
+.Oo before Oc : Ns Op after
+.Pp
+Before closing punctuation:
+.Oo before Oc Ns : Op after
+.Pp
At the end of a macro line:
.Oo before Oc Ns
.Op after