From 3c63611ee89298b92b89ee5a72e03ddf82e2059f Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sun, 8 Mar 2009 18:02:36 +0000 Subject: Updated manuals. Added -fign-scope and -fign-escape. --- validate.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'validate.c') diff --git a/validate.c b/validate.c index 9fbc4058..3f8c32cc 100644 --- a/validate.c +++ b/validate.c @@ -1,4 +1,4 @@ -/* $Id: validate.c,v 1.73 2009/03/08 12:40:27 kristaps Exp $ */ +/* $Id: validate.c,v 1.74 2009/03/08 18:02:36 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons * @@ -685,7 +685,12 @@ check_text(struct mdoc *mdoc, int line, int pos, const char *p) p += (int)c - 1; continue; } - return(mdoc_perr(mdoc, line, pos, "invalid escape")); + if ( ! (MDOC_IGN_ESCAPE & mdoc->pflags)) + return(mdoc_perr(mdoc, line, pos, + "invalid escape sequence")); + if ( ! mdoc_pwarn(mdoc, line, pos, WARN_SYNTAX, + "invalid escape sequence")) + return(0); } return(1); -- cgit v1.2.3