diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2021-07-18 11:41:23 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2021-07-18 11:41:23 +0000 |
commit | 9da075194331263ad449da9c0e105b47903e17f5 (patch) | |
tree | 5b04a3913327f9d8eb7e901cefc5ff2b74aaa203 | |
parent | e2631349dc5e5cd9592b398a207bbfa48331cdd4 (diff) | |
download | mandoc-9da075194331263ad449da9c0e105b47903e17f5.tar.gz mandoc-9da075194331263ad449da9c0e105b47903e17f5.tar.zst mandoc-9da075194331263ad449da9c0e105b47903e17f5.zip |
Support auto-tagging for ".It Va".
This combination is somewhat rare because few libraries expose so many
global variables that they need a list to enumerate them, but when the
idiom does occur, tagging the variable names is generally useful.
For example, this helps awk(1), dc(1), make(1), rc.subr(8), ...
Missing feature reported and patch reviewed, tested, and OK'ed by kn@.
-rw-r--r-- | mdoc_validate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c index 3dc4a6f1..e1cd3ae1 100644 --- a/mdoc_validate.c +++ b/mdoc_validate.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_validate.c,v 1.388 2020/10/30 13:24:33 schwarze Exp $ */ +/* $Id: mdoc_validate.c,v 1.389 2021/07/18 11:41:23 schwarze Exp $ */ /* * Copyright (c) 2010-2020 Ingo Schwarze <schwarze@openbsd.org> * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv> @@ -164,7 +164,7 @@ static const v_post mdoc_valids[MDOC_MAX - MDOC_Dd] = { post_defaults, /* Pa */ post_rv, /* Rv */ post_st, /* St */ - post_delim_nb, /* Va */ + post_tag, /* Va */ post_delim_nb, /* Vt */ post_xr, /* Xr */ NULL, /* %A */ |