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

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

Revision 1.7, Sun Jun 5 13:54:16 2022 UTC (23 months, 4 weeks ago) by schwarze
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 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: escname.in:9:5: ERROR: escaped character not allowed in a name: first\e
mandoc: escname.in:11:10: WARNING: undefined escape, printing literally: \G
mandoc: escname.in:14:5: ERROR: escaped character not allowed in a name: first\e
mandoc: escname.in:20:13: ERROR: incomplete escape sequence: \n[second
mandoc: escname.in:20:12: STYLE: whitespace at end of input line