summaryrefslogtreecommitdiff
path: root/regress/usr.bin/mandoc/char/space/invalid.out_lint
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2022-06-05 13:42:51 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2022-06-05 13:42:51 +0000
commitda37b51915b41643ca283c356379b1fa2a72e6fc (patch)
tree98ff77d37c5ff90fcbcee93c5853011eff2f1f80 /regress/usr.bin/mandoc/char/space/invalid.out_lint
parent4f43bedbcdc8b5b475ff648d08b3a81a549844ee (diff)
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/usr.bin/mandoc/char/space/invalid.out_lint')
-rw-r--r--regress/usr.bin/mandoc/char/space/invalid.out_lint16
1 files changed, 8 insertions, 8 deletions
diff --git a/regress/usr.bin/mandoc/char/space/invalid.out_lint b/regress/usr.bin/mandoc/char/space/invalid.out_lint
index c05ef38f1f6..4c146853c3d 100644
--- a/regress/usr.bin/mandoc/char/space/invalid.out_lint
+++ b/regress/usr.bin/mandoc/char/space/invalid.out_lint
@@ -1,9 +1,9 @@
mandoc: invalid.in:7:15: WARNING: invalid escape sequence: \[
-mandoc: invalid.in:8:14: WARNING: invalid escape sequence: \[%]
-mandoc: invalid.in:9:16: WARNING: invalid escape sequence: \[&]
-mandoc: invalid.in:10:12: WARNING: invalid escape sequence: \[:]
-mandoc: invalid.in:11:12: WARNING: invalid escape sequence: \[^]
-mandoc: invalid.in:12:16: WARNING: invalid escape sequence: \[_]
-mandoc: invalid.in:13:11: WARNING: invalid escape sequence: \[|]
-mandoc: invalid.in:14:12: WARNING: invalid escape sequence: \[~]
-mandoc: invalid.in:15:18: WARNING: invalid escape sequence: \[0]
+mandoc: invalid.in:8:14: ERROR: invalid special character: \[%]
+mandoc: invalid.in:9:16: ERROR: invalid special character: \[&]
+mandoc: invalid.in:10:12: ERROR: invalid special character: \[:]
+mandoc: invalid.in:11:12: ERROR: invalid special character: \[^]
+mandoc: invalid.in:12:16: ERROR: invalid special character: \[_]
+mandoc: invalid.in:13:11: ERROR: invalid special character: \[|]
+mandoc: invalid.in:14:12: ERROR: invalid special character: \[~]
+mandoc: invalid.in:15:18: ERROR: invalid special character: \[0]