diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-08 18:02:36 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-08 18:02:36 +0000 |
commit | 3c63611ee89298b92b89ee5a72e03ddf82e2059f (patch) | |
tree | fb23a285271560c4502791d265d2916405469a89 /validate.c | |
parent | f4174d477ac34e47067d4a9e45cc192f7271973a (diff) | |
download | mandoc-3c63611ee89298b92b89ee5a72e03ddf82e2059f.tar.gz mandoc-3c63611ee89298b92b89ee5a72e03ddf82e2059f.tar.zst mandoc-3c63611ee89298b92b89ee5a72e03ddf82e2059f.zip |
Updated manuals.
Added -fign-scope and -fign-escape.
Diffstat (limited to 'validate.c')
-rw-r--r-- | validate.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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 <kristaps@kth.se> * @@ -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); |