aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mandoc.1
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-01-10 12:53:07 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-01-10 12:53:07 +0000
commitf313579fbb5a5318367521793dc24d2567da2fde (patch)
tree59f0ec418ab638218374512a8cc78a4cde422b54 /mandoc.1
parentc8505d9515e240b816d67a5b4a08ccfd4268cb6a (diff)
downloadmandoc-f313579fbb5a5318367521793dc24d2567da2fde.tar.gz
mandoc-f313579fbb5a5318367521793dc24d2567da2fde.tar.zst
mandoc-f313579fbb5a5318367521793dc24d2567da2fde.zip
Introduce flags NODE_NOSRC and NODE_NOPRT for AST nodes.
Use them to mark generated nodes and nodes that shall not produce output. Let -Ttree output mode display these new flags. Use NODE_NOSRC for .Ar, .Mt, and .Pa default arguments. Use NODE_NOPRT for .Dd, .Dt, and .Os. These will help to make handling of text production macros more rigorous.
Diffstat (limited to 'mandoc.1')
-rw-r--r--mandoc.110
1 files changed, 8 insertions, 2 deletions
diff --git a/mandoc.1 b/mandoc.1
index 98457b2f..f99bb14b 100644
--- a/mandoc.1
+++ b/mandoc.1
@@ -1,4 +1,4 @@
-.\" $Id: mandoc.1,v 1.168 2017/01/08 00:11:23 schwarze Exp $
+.\" $Id: mandoc.1,v 1.169 2017/01/10 12:53:07 schwarze Exp $
.\"
.\" Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
.\" Copyright (c) 2012, 2014-2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -15,7 +15,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: January 8 2017 $
+.Dd $Mdocdate: January 10 2017 $
.Dt MANDOC 1
.Os
.Sh NAME
@@ -529,6 +529,12 @@ The input column number (starting at one).
A closing parenthesis if the node is a closing delimiter.
.It
A full stop if the node ends a sentence.
+.It
+NOSRC if the node is not in the input file,
+but automatically generated from macros.
+.It
+NOPRT if the node is not supposed to generate output
+for any output format.
.El
.El
.Sh ENVIRONMENT