source@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: schwarze@mandoc.bsd.lv
To: source@mandoc.bsd.lv
Subject: mandoc: Test handling of escaped backslashes because the code related to
Date: Thu, 17 Jan 2019 01:34:06 -0500 (EST)	[thread overview]
Message-ID: <e3eed7903513241b@fantadrom.bsd.lv> (raw)

Log Message:
-----------
Test handling of escaped backslashes because the code related to
copy mode is complicated and prone to regressions.

Modified Files:
--------------
    mandoc/regress/roff/esc:
        Makefile

Added Files:
-----------
    mandoc/regress/roff/esc:
        bs_man.in
        bs_man.out_ascii
        bs_mdoc.in
        bs_mdoc.out_ascii

Revision Data
-------------
--- /dev/null
+++ regress/roff/esc/bs_mdoc.in
@@ -0,0 +1,30 @@
+.\" $OpenBSD: bs_mdoc.in,v 1.1 2019/01/17 06:29:14 schwarze Exp $
+.Dd $Mdocdate: January 17 2019 $
+.Dt ESC-BS_MDOC 1
+.Os
+.Sh NAME
+.Nm esc-bs_mdoc
+.Nd escaped backslashes in mdoc(7) code
+.Sh DESCRIPTION
+.ds usestr (initial)
+.de testmac
+prefix\*[usestr]suffix
+prefix\\*[usestr]suffix
+..
+.ds teststr prefix\*[usestr]middle\\*[usestr]suffix
+.ds usestr (later)
+on a text line: prefix\\suffix
+.Pp
+in a macro definition:
+.testmac
+.Pp
+in a string definition: \*[teststr]
+.Pp
+in a high-level macro argument:
+.Sy prefix\\*[usestr]suffix
+.Pp
+.de argmac
+{\\$1}
+..
+in a user-defined macro argument:
+.argmac prefix\\*[usestr]suffix
--- /dev/null
+++ regress/roff/esc/bs_mdoc.out_ascii
@@ -0,0 +1,17 @@
+ESC-BS_MDOC(1)              General Commands Manual             ESC-BS_MDOC(1)
+
+N\bNA\bAM\bME\bE
+     e\bes\bsc\bc-\b-b\bbs\bs_\b_m\bmd\bdo\boc\bc - escaped backslashes in mdoc(7) code
+
+D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
+     on a text line: prefix\suffix
+
+     in a macro definition: prefix(initial)suffix prefix(later)suffix
+
+     in a string definition: prefix(initial)middle(later)suffix
+
+     in a high-level macro argument: p\bpr\bre\bef\bfi\bix\bx(\b(l\bla\bat\bte\ber\br)\b)s\bsu\buf\bff\bfi\bix\bx
+
+     in a user-defined macro argument: {prefix(later)suffix}
+
+OpenBSD                        January 17, 2019                        OpenBSD
--- /dev/null
+++ regress/roff/esc/bs_man.in
@@ -0,0 +1,27 @@
+.\" $OpenBSD: bs_man.in,v 1.1 2019/01/17 06:29:14 schwarze Exp $
+.TH ESC-BS_MAN 1 "January 17, 2019"
+.SH NAME
+esc-bs_man \- escaped backslashes in man(7) code
+.SH DESCRIPTION
+.ds usestr (initial)
+.de testmac
+prefix\*[usestr]suffix
+prefix\\*[usestr]suffix
+..
+.ds teststr prefix\*[usestr]middle\\*[usestr]suffix
+.ds usestr (later)
+on a text line: prefix\\suffix
+.PP
+in a macro definition:
+.testmac
+.PP
+in a string definition: \*[teststr]
+.PP
+in a high-level macro argument:
+.IB prefix ##\\*[usestr]## suffix
+.PP
+.de argmac
+{\\$1}
+..
+in a user-defined macro argument:
+.argmac prefix\\*[usestr]suffix
--- /dev/null
+++ regress/roff/esc/bs_man.out_ascii
@@ -0,0 +1,21 @@
+ESC-BS_MAN(1)               General Commands Manual              ESC-BS_MAN(1)
+
+
+
+N\bNA\bAM\bME\bE
+       esc-bs_man - escaped backslashes in man(7) code
+
+D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
+       on a text line: prefix\suffix
+
+       in a macro definition: prefix(initial)suffix prefix(later)suffix
+
+       in a string definition: prefix(initial)middle(later)suffix
+
+       in a high-level macro argument: _\bp_\br_\be_\bf_\bi_\bx#\b##\b#(\b(l\bla\bat\bte\ber\br)\b)#\b##\b#_\bs_\bu_\bf_\bf_\bi_\bx
+
+       in a user-defined macro argument: {prefix(later)suffix}
+
+
+
+OpenBSD                        January 17, 2019                  ESC-BS_MAN(1)
Index: Makefile
===================================================================
RCS file: /home/cvs/mandoc/mandoc/regress/roff/esc/Makefile,v
retrieving revision 1.5
retrieving revision 1.6
diff -Lregress/roff/esc/Makefile -Lregress/roff/esc/Makefile -u -p -r1.5 -r1.6
--- regress/roff/esc/Makefile
+++ regress/roff/esc/Makefile
@@ -1,6 +1,6 @@
-# $OpenBSD: Makefile,v 1.15 2018/12/15 23:33:20 schwarze Exp $
+# $OpenBSD: Makefile,v 1.16 2019/01/17 06:29:14 schwarze Exp $
 
-REGRESS_TARGETS	 = one two multi B c c_man e f h l O o p w z
+REGRESS_TARGETS	 = one two multi B bs_man bs_mdoc c c_man e f h l O o p w z
 REGRESS_TARGETS	+= ignore invalid unsupp
 HTML_TARGETS	 = f
 LINT_TARGETS	 = B h l O w ignore invalid unsupp
--
 To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv

                 reply	other threads:[~2019-01-17  6:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e3eed7903513241b@fantadrom.bsd.lv \
    --to=schwarze@mandoc.bsd.lv \
    --cc=source@mandoc.bsd.lv \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).