From 88ba4d2363be835b2d0de5d552baadb9952ff64c Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Fri, 20 May 2022 12:32:29 +0000 Subject: 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. --- regress/roff/esc/ignore.in | 20 +++++++++++++++----- regress/roff/esc/ignore.out_ascii | 18 ++++++++++++++---- regress/roff/esc/ignore.out_lint | 18 ++++++++++++++---- 3 files changed, 43 insertions(+), 13 deletions(-) diff --git a/regress/roff/esc/ignore.in b/regress/roff/esc/ignore.in index 48507f44..5d31614e 100644 --- a/regress/roff/esc/ignore.in +++ b/regress/roff/esc/ignore.in @@ -1,12 +1,22 @@ -.\" $OpenBSD: ignore.in,v 1.3 2017/07/04 14:53:27 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/roff/esc/ignore.out_ascii b/regress/roff/esc/ignore.out_ascii index 536fc245..5d98db9d 100644 --- a/regress/roff/esc/ignore.out_ascii +++ b/regress/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/roff/esc/ignore.out_lint b/regress/roff/esc/ignore.out_lint index 78150f4d..16d64a97 100644 --- a/regress/roff/esc/ignore.out_lint +++ b/regress/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- -- cgit v1.2.3-56-ge451