aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mandoc_msg.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2022-06-07 09:54:40 +0000
committerIngo Schwarze <schwarze@openbsd.org>2022-06-07 09:54:40 +0000
commit0e5b172a930a9f03c2f2175cbdd843fa54782a89 (patch)
tree6ecb1a0a22ad84cee5d421e990446dc88993af00 /mandoc_msg.c
parent107fbb7280cf75642a3daa8ab3eea9a3974616b9 (diff)
downloadmandoc-0e5b172a930a9f03c2f2175cbdd843fa54782a89.tar.gz
mandoc-0e5b172a930a9f03c2f2175cbdd843fa54782a89.tar.zst
mandoc-0e5b172a930a9f03c2f2175cbdd843fa54782a89.zip
Split the excessively generic diagnostic message "invalid escape sequence"
into the more specific messages "invalid escape argument delimiter" and "invalid escape sequence argument".
Diffstat (limited to 'mandoc_msg.c')
-rw-r--r--mandoc_msg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mandoc_msg.c b/mandoc_msg.c
index 566a140e..baa709c7 100644
--- a/mandoc_msg.c
+++ b/mandoc_msg.c
@@ -173,7 +173,7 @@ static const char *const type_message[MANDOCERR_MAX] = {
"blank line in fill mode, using .sp",
"tab in filled text",
"new sentence, new line",
- "invalid escape sequence",
+ "invalid escape sequence argument",
"undefined escape, printing literally",
"undefined string, using \"\"",
@@ -240,6 +240,7 @@ static const char *const type_message[MANDOCERR_MAX] = {
"incomplete escape sequence",
"invalid special character",
"unknown special character",
+ "invalid escape argument delimiter",
"unsupported feature",
"input too large",