summaryrefslogtreecommitdiffstatshomepage
path: root/validate.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-08 18:02:36 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-08 18:02:36 +0000
commit3c63611ee89298b92b89ee5a72e03ddf82e2059f (patch)
treefb23a285271560c4502791d265d2916405469a89 /validate.c
parentf4174d477ac34e47067d4a9e45cc192f7271973a (diff)
downloadmandoc-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.c9
1 files changed, 7 insertions, 2 deletions
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 <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);