From 4051ca4c1c6b3fe1989bc59d0c584464e8f8d84b 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. --- regress/roff/esc/w.out_lint | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'regress/roff/esc/w.out_lint') diff --git a/regress/roff/esc/w.out_lint b/regress/roff/esc/w.out_lint index d48495c2..11dfbef5 100644 --- a/regress/roff/esc/w.out_lint +++ b/regress/roff/esc/w.out_lint @@ -1 +1 @@ -mandoc: w.in:17:15: WARNING: invalid escape sequence: \w'foo +mandoc: w.in:17:15: ERROR: incomplete escape sequence: \w'foo -- cgit