With the improved escape sequence parser, it becomes easy to also improve
authorschwarze <schwarze@openbsd.org>
Sun, 5 Jun 2022 13:42:49 +0000 (13:42 +0000)
committerschwarze <schwarze@openbsd.org>
Sun, 5 Jun 2022 13:42:49 +0000 (13:42 +0000)
commitf8e3b479bff00e265eb456d46fd0a4b09543d4d1
tree167fdefd537c82f1f510ad6b350c2b595cf349e6
parentc4e5276df00a4f54a1cf9cd72ed0fde6e8b3efbd
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.
16 files changed:
regress/usr.bin/mandoc/char/accent/nocombine.out_lint
regress/usr.bin/mandoc/char/space/invalid.out_lint
regress/usr.bin/mandoc/char/unicode/input.out_lint
regress/usr.bin/mandoc/char/unicode/invalid.out_lint
regress/usr.bin/mandoc/roff/char/badarg.out_lint
regress/usr.bin/mandoc/roff/esc/B.out_lint
regress/usr.bin/mandoc/roff/esc/ignore.out_lint
regress/usr.bin/mandoc/roff/esc/invalid.out_lint
regress/usr.bin/mandoc/roff/esc/unsupp.out_lint
regress/usr.bin/mandoc/roff/esc/w.out_lint
regress/usr.bin/mandoc/roff/nr/escname.out_lint
regress/usr.bin/mandoc/roff/string/name.out_lint
usr.bin/mandoc/mandoc.1
usr.bin/mandoc/mandoc.h
usr.bin/mandoc/mandoc_msg.c
usr.bin/mandoc/roff_escape.c