[BACK]Return to badarg.out_lint CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc / regress / roff / char

File: [cvsweb.bsd.lv] / mandoc / regress / roff / char / badarg.out_lint (download)

Revision 1.2, Sun Jun 5 13:54:14 2022 UTC (2 years ago) by schwarze
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -2 lines

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.

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: 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: ERROR: unknown special character: \[myc]