summaryrefslogtreecommitdiffstats
path: root/regress/roff/char/badarg.out_lint
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2022-06-05 13:54:09 +0000
committerIngo Schwarze <schwarze@openbsd.org>2022-06-05 13:54:09 +0000
commit4051ca4c1c6b3fe1989bc59d0c584464e8f8d84b (patch)
treef7dbab9b16049f04a8729b95a4186ce290d13224 /regress/roff/char/badarg.out_lint
parent7e17b66dfe3fa638b5bdaa235a97312af792f229 (diff)
downloadmandoc-4051ca4c1c6b3fe1989bc59d0c584464e8f8d84b.tar.gz
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.
Diffstat (limited to 'regress/roff/char/badarg.out_lint')
-rw-r--r--regress/roff/char/badarg.out_lint4
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/roff/char/badarg.out_lint b/regress/roff/char/badarg.out_lint
index e07faa3c..dd5c7999 100644
--- a/regress/roff/char/badarg.out_lint
+++ b/regress/roff/char/badarg.out_lint
@@ -1,6 +1,6 @@
mandoc: badarg.in:6:6: ERROR: argument is not a character: char
mandoc: badarg.in:7:7: ERROR: argument is not a character: char \fR myval
-mandoc: badarg.in:8:7: WARNING: invalid escape sequence: \[myc]
+mandoc: badarg.in:8:7: ERROR: unknown special character: \[myc]
mandoc: badarg.in:8:7: ERROR: argument is not a character: char \[myc]x myval
mandoc: badarg.in:9:7: ERROR: argument is not a character: char xy myval
-mandoc: badarg.in:10:7: WARNING: invalid escape sequence: \[myc]
+mandoc: badarg.in:10:7: ERROR: unknown special character: \[myc]