diff options
author | 2014-07-05 12:34:17 +0000 | |
---|---|---|
committer | 2014-07-05 12:34:17 +0000 | |
commit | 1fb6260b95b5d63603b18fce1b7f24f1a0db82b3 (patch) | |
tree | 66f48fb762c03e72a2023f2f3ba6fa55961285bb /read.c | |
parent | d6a2384f7d4afffa920faf2c8f8b7801f84669fe (diff) | |
download | mandoc-1fb6260b95b5d63603b18fce1b7f24f1a0db82b3.tar.gz mandoc-1fb6260b95b5d63603b18fce1b7f24f1a0db82b3.tar.zst mandoc-1fb6260b95b5d63603b18fce1b7f24f1a0db82b3.zip |
Cleanup with respect to bad macro arguments.
* Fix .Sm with invalid arg: move arg out and toggle mode.
* Promote "unknown standard" from WARNING to ERROR, it loses information.
* Delete MANDOCERR_BADWIDTH, it would only indicate a mandoc(1) bug.
* Do not report MANDOCERR_BL_LATETYPE when there is no type at all.
* Mention macro names, arguments and fallbacks.
Diffstat (limited to 'read.c')
-rw-r--r-- | read.c | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -1,4 +1,4 @@ -/* $Id: read.c,v 1.62 2014/07/05 01:12:20 schwarze Exp $ */ +/* $Id: read.c,v 1.63 2014/07/05 12:34:17 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2014 Ingo Schwarze <schwarze@openbsd.org> @@ -145,13 +145,11 @@ static const char * const mandocerrs[MANDOCERR_MAX] = { /* related to bad macro arguments */ "skipping argument", "duplicate argument", - "duplicate display type", - "duplicate list type", + "skipping duplicate display type", + "skipping duplicate list type", "unknown AT&T UNIX version", - "bad Boolean value", - "unknown font", - "unknown standard specifier", - "bad width argument", + "invalid Boolean argument", + "unknown font, skipping request", /* related to plain text */ "blank line in non-literal context", @@ -189,6 +187,7 @@ static const char * const mandocerrs[MANDOCERR_MAX] = { "NOT IMPLEMENTED, please use groff: skipping request", "argument count wrong", "skipping invalid content in .Rs block", + "unknown standard specifier", "skipping column outside column list", "skipping end of block that is not open", "missing end of block", |