From: schwarze Date: Fri, 20 May 2022 12:30:33 +0000 (+0000) Subject: Test the handling of some additional one-character escape sequences X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=4c6bf6b83bf8dc201ecd4746941140b7fbf36db1;p=openbsd Test the handling of some additional one-character escape sequences that take no argument and are ignored: \% \& \^ \a \d \t \u \{ \| \} No change to parsing or formatting needed. --- diff --git a/regress/usr.bin/mandoc/roff/esc/ignore.in b/regress/usr.bin/mandoc/roff/esc/ignore.in index cb1a3e12581..5d31614e0bc 100644 --- a/regress/usr.bin/mandoc/roff/esc/ignore.in +++ b/regress/usr.bin/mandoc/roff/esc/ignore.in @@ -1,12 +1,22 @@ -.\" $OpenBSD: ignore.in,v 1.4 2018/12/15 19:30:20 schwarze Exp $ -.TH ESC-IGNORE 1 "December 15, 2018" +.\" $OpenBSD: ignore.in,v 1.5 2022/05/20 12:30:33 schwarze Exp $ +.TH ESC-IGNORE 1 "May 20, 2022" .SH NAME esc-ignore \- ignored roff escape sequences .SH DESCRIPTION .nf -closing parenthesis: a\)b\[)]c -comma: a\,b\[,]c -slash: a\/b\[/]c +percent (hyphenation allowed): a\%b\[%]c +ampersand (zero width space): a\&b\[&]c +closing parenthesis (ZWS transparent to EOS): a\)b\[)]c +comma (left italic correction): a\,b\[,]c +slash (right italic correction): a\/b\[/]c +caret (1/12 em space): a\^b\[^]c +a (leader): a\ab\[a]c +d (half line feed): a\db\[d]c +t (horizontal tab): a\tb\[t]c +u (half reverse line feed): a\ub\[u]c +opening brace: a\{b\[{]c +bar (1/6 em space): a\|b\[|]c +closing brace: a\}b\[}]c multiform: a\kxb\k(xyc\k[xyz]d quoted: a\R'myreg 0'b\R'myreg \A'y'0'c sizes: a\s0b\s(12c\s[123]d\s'123'e\s'1\w'xy'2'f diff --git a/regress/usr.bin/mandoc/roff/esc/ignore.out_ascii b/regress/usr.bin/mandoc/roff/esc/ignore.out_ascii index 536fc245001..5d98db9d101 100644 --- a/regress/usr.bin/mandoc/roff/esc/ignore.out_ascii +++ b/regress/usr.bin/mandoc/roff/esc/ignore.out_ascii @@ -4,12 +4,22 @@ NNAAMMEE esc-ignore - ignored roff escape sequences DDEESSCCRRIIPPTTIIOONN - closing parenthesis: abc - comma: abc - slash: abc + percent (hyphenation allowed): abc + ampersand (zero width space): abc + closing parenthesis (ZWS transparent to EOS): abc + comma (left italic correction): abc + slash (right italic correction): abc + caret (1/12 em space): abc + a (leader): abc + d (half line feed): abc + t (horizontal tab): abc + u (half reverse line feed): abc + opening brace: abc + bar (1/6 em space): abc + closing brace: abc multiform: abcd quoted: abc sizes: abcdef signed sizes: abcdef -OpenBSD December 15, 2018 ESC-IGNORE(1) +OpenBSD May 20, 2022 ESC-IGNORE(1) diff --git a/regress/usr.bin/mandoc/roff/esc/ignore.out_lint b/regress/usr.bin/mandoc/roff/esc/ignore.out_lint index 78150f4de78..16d64a978c6 100644 --- a/regress/usr.bin/mandoc/roff/esc/ignore.out_lint +++ b/regress/usr.bin/mandoc/roff/esc/ignore.out_lint @@ -1,4 +1,14 @@ -mandoc: ignore.in:7:26: WARNING: invalid escape sequence: \[)] -mandoc: ignore.in:8:12: WARNING: invalid escape sequence: \[,] -mandoc: ignore.in:9:12: WARNING: invalid escape sequence: \[/] -mandoc: ignore.in:13:56: WARNING: invalid escape sequence: \s- +mandoc: ignore.in:7:36: WARNING: invalid escape sequence: \[%] +mandoc: ignore.in:8:35: WARNING: invalid escape sequence: \[&] +mandoc: ignore.in:9:51: WARNING: invalid escape sequence: \[)] +mandoc: ignore.in:10:37: WARNING: invalid escape sequence: \[,] +mandoc: ignore.in:11:38: WARNING: invalid escape sequence: \[/] +mandoc: ignore.in:12:28: WARNING: invalid escape sequence: \[^] +mandoc: ignore.in:13:17: WARNING: invalid escape sequence: \[a] +mandoc: ignore.in:14:25: WARNING: invalid escape sequence: \[d] +mandoc: ignore.in:15:25: WARNING: invalid escape sequence: \[t] +mandoc: ignore.in:16:33: WARNING: invalid escape sequence: \[u] +mandoc: ignore.in:17:20: WARNING: invalid escape sequence: \[{] +mandoc: ignore.in:18:25: WARNING: invalid escape sequence: \[|] +mandoc: ignore.in:19:20: WARNING: invalid escape sequence: \[}] +mandoc: ignore.in:23:56: WARNING: invalid escape sequence: \s-