diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2022-06-05 13:54:09 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2022-06-05 13:54:09 +0000 |
commit | 4051ca4c1c6b3fe1989bc59d0c584464e8f8d84b (patch) | |
tree | f7dbab9b16049f04a8729b95a4186ce290d13224 /regress/char/space/invalid.out_lint | |
parent | 7e17b66dfe3fa638b5bdaa235a97312af792f229 (diff) | |
download | mandoc-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/char/space/invalid.out_lint')
-rw-r--r-- | regress/char/space/invalid.out_lint | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/regress/char/space/invalid.out_lint b/regress/char/space/invalid.out_lint index c05ef38f..4c146853 100644 --- a/regress/char/space/invalid.out_lint +++ b/regress/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] |