diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2008-12-29 19:25:29 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2008-12-29 19:25:29 +0000 |
commit | 38b49bee113edcc4afc7b96453d5f3eb3ef7b965 (patch) | |
tree | dc7d400651ec5877058b59ae50ba1718f876eabe /macro.c | |
parent | f6c6b91bd1d5c314c866ec4cb71f4ff2573fc2f2 (diff) | |
download | mandoc-38b49bee113edcc4afc7b96453d5f3eb3ef7b965.tar.gz |
*** empty log message ***
Diffstat (limited to 'macro.c')
-rw-r--r-- | macro.c | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -219,6 +219,18 @@ append_const(struct mdoc *mdoc, int tok, mdoc_word_alloc(mdoc, pos, args[1]); return(1); + case (MDOC_Nd): + if (sz > 0) + break; + if ( ! mdoc_warn(mdoc, tok, pos, WARN_ARGS_GE1)) + return(0); + break; + + case (MDOC_Hf): + if (1 == sz) + break; + return(mdoc_err(mdoc, tok, pos, ERR_ARGS_EQ1)); + case (MDOC_Bx): /* FALLTHROUGH */ case (MDOC_Bsx): @@ -307,6 +319,10 @@ append_text(struct mdoc *mdoc, int tok, /* FALLTHROUGH */ case (MDOC_Ic): /* FALLTHROUGH */ + case (MDOC_Sy): + /* FALLTHROUGH */ + case (MDOC_Sx): + /* FALLTHROUGH */ case (MDOC_Va): /* FALLTHROUGH */ case (MDOC_Vt): |