Fix a bug with handling backslash escapes inside some quotes.

Should solve our problems with edit-pr.
This commit is contained in:
Paul Richards 1995-01-09 20:00:54 +00:00
parent b324392f6b
commit f5c4a27846
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=5458

View File

@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: parser.c,v 1.3 1994/09/24 02:58:08 davidg Exp $
*/
#ifndef lint
@ -1181,7 +1181,7 @@ parsebackq: {
while ((c = pgetc ()) != '`') {
if (c == '\\') {
c = pgetc ();
if (c != '\\' && c != '`' && c != '$'
if (c != '`' && c != '$'
&& (!dblquote || c != '"'))
STPUTC('\\', out);
}