diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-01-10 12:53:07 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-01-10 12:53:07 +0000 |
commit | f313579fbb5a5318367521793dc24d2567da2fde (patch) | |
tree | 59f0ec418ab638218374512a8cc78a4cde422b54 /mandoc.1 | |
parent | c8505d9515e240b816d67a5b4a08ccfd4268cb6a (diff) | |
download | mandoc-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.1 | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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 |