From 569291aa948d0c424a458fd6b732f178f8d52c30 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Wed, 23 Mar 2011 09:47:13 +0000 Subject: Make (e.g.) `SM' before `B' be only a warning. In reality, this refers to ELINE macros ("next-line", but not unbreakable like the next-line paragraph macros) followed by other macros. This addresses a report by Christian Weisgerber, posted in the TODO by schwarze@, and aired on discuss@ (22/03/2011) for whether a fix is warranted. --- TODO | 8 +------- main.c | 4 ++-- mandoc.h | 4 ++-- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/TODO b/TODO index 9615a499..59a47906 100644 --- a/TODO +++ b/TODO @@ -1,6 +1,6 @@ ************************************************************************ * Official mandoc TODO. -* $Id: TODO,v 1.94 2011/03/22 15:30:30 kristaps Exp $ +* $Id: TODO,v 1.95 2011/03/23 09:47:13 kristaps Exp $ ************************************************************************ ************************************************************************ @@ -103,12 +103,6 @@ --- missing man features ----------------------------------------------- -- bashbug(1) complains "line scope broken" after - .SM - .B something - should either just work or be a warning - reported by naddy@ - - groff an-ext.tmac macros (.UR, .UE) occur in xine(5) reported by brad@ Sat, 15 Jan 2011 15:45:23 -0500 diff --git a/main.c b/main.c index f6f52fda..0ea83604 100644 --- a/main.c +++ b/main.c @@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.158 2011/03/22 10:35:26 kristaps Exp $ */ +/* $Id: main.c,v 1.159 2011/03/23 09:47:13 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010, 2011 Ingo Schwarze @@ -106,6 +106,7 @@ static const char * const mandocerrs[MANDOCERR_MAX] = { "child violates parent syntax", "nested displays are not portable", "already in literal mode", + "line scope broken", /* related to missing macro arguments */ "skipping empty macro", @@ -153,7 +154,6 @@ static const char * const mandocerrs[MANDOCERR_MAX] = { "skipping text before the first section header", "skipping unknown macro", "NOT IMPLEMENTED, please use groff: skipping request", - "line scope broken", "argument count wrong", "skipping end of block that is not open", "missing end of block", diff --git a/mandoc.h b/mandoc.h index 694179d1..cf20bfbc 100644 --- a/mandoc.h +++ b/mandoc.h @@ -1,4 +1,4 @@ -/* $Id: mandoc.h,v 1.67 2011/03/22 14:05:45 kristaps Exp $ */ +/* $Id: mandoc.h,v 1.68 2011/03/23 09:47:13 kristaps Exp $ */ /* * Copyright (c) 2010, 2011 Kristaps Dzonsons * @@ -74,6 +74,7 @@ enum mandocerr { MANDOCERR_CHILD, /* child violates parent syntax */ MANDOCERR_NESTEDDISP, /* nested displays are not portable */ MANDOCERR_SCOPEREP, /* already in literal mode */ + MANDOCERR_LINESCOPE, /* line scope broken */ /* related to missing macro arguments */ MANDOCERR_MACROEMPTY, /* skipping empty macro */ @@ -121,7 +122,6 @@ enum mandocerr { MANDOCERR_NOTEXT, /* skipping text before the first section header */ MANDOCERR_MACRO, /* skipping unknown macro */ MANDOCERR_REQUEST, /* NOT IMPLEMENTED: skipping request */ - MANDOCERR_LINESCOPE, /* line scope broken */ MANDOCERR_ARGCOUNT, /* argument count wrong */ MANDOCERR_NOSCOPE, /* skipping end of block that is not open */ MANDOCERR_SCOPEBROKEN, /* missing end of block */ -- cgit v1.2.3-56-ge451