]> git.cameronkatri.com Git - mandoc.git/commit
With the improved escape sequence parser, it becomes easy to also improve
authorIngo Schwarze <schwarze@openbsd.org>
Sun, 5 Jun 2022 13:54:09 +0000 (13:54 +0000)
committerIngo Schwarze <schwarze@openbsd.org>
Sun, 5 Jun 2022 13:54:09 +0000 (13:54 +0000)
commit3a43ce11ac1aec9b2c00d7c5f966919b71f5eda7
treef1c2dbb9cb9eabff8877de71fea198ced3487b5e
parent2e4490e7023dd483d992df8eb6f75860fd445fe4
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:
mandoc.1
mandoc.h
mandoc_msg.c
regress/char/accent/nocombine.out_lint
regress/char/space/invalid.out_lint
regress/char/unicode/input.out_lint
regress/char/unicode/invalid.out_lint
regress/roff/char/badarg.out_lint
regress/roff/esc/B.out_lint
regress/roff/esc/ignore.out_lint
regress/roff/esc/invalid.out_lint
regress/roff/esc/unsupp.out_lint
regress/roff/esc/w.out_lint
regress/roff/nr/escname.out_lint
regress/roff/string/name.out_lint
roff_escape.c