From 3a43ce11ac1aec9b2c00d7c5f966919b71f5eda7 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sun, 5 Jun 2022 13:54:09 +0000 Subject: With the improved escape sequence parser, it becomes easy to also improve diagnostics. Distinguish "incomplete escape sequence", "invalid special character", and "unknown special character" from the generic "invalid escape sequence", also promoting them from WARNING to ERROR because incomplete escape sequences are severe syntax violations and because encountering an invalid or unknown special character makes it likely that part of the document content intended by the authors gets lost. --- mandoc_msg.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mandoc_msg.c') diff --git a/mandoc_msg.c b/mandoc_msg.c index 80a49d1d..566a140e 100644 --- a/mandoc_msg.c +++ b/mandoc_msg.c @@ -236,6 +236,11 @@ static const char *const type_message[MANDOCERR_MAX] = { "skipping excess arguments", "divide by zero", + /* related to escape sequences */ + "incomplete escape sequence", + "invalid special character", + "unknown special character", + "unsupported feature", "input too large", "unsupported control character", -- cgit v1.2.3