Fixed #10967: Using a round bracket (parenthesis) in a macro. Unbalanced parentheses can now be escaped in macro calls using the backslash character.

This commit is contained in:
hao 2009-09-14 14:27:14 -04:00
parent f40992f217
commit a48b16dbfc
5 changed files with 55 additions and 2 deletions

View file

@ -34,6 +34,22 @@ my @testSets = (
input => q!!,
output => q!''!,
},
{
input => q!\(Awesome opening unbalanced parenthesis!,
output => q!'\\\\(Awesome opening unbalanced parenthesis'!,
},
{
input => q!Prefixed \(Awesome opening unbalanced parenthesis!,
output => q!'Prefixed \\\\(Awesome opening unbalanced parenthesis'!,
},
{
input => q!cool closing unbalanced parenthesis\)!,
output => q!'cool closing unbalanced parenthesis\\\\)'!,
},
{
input => q!cool closing unbalanced parenthesis\) with suffix!,
output => q!'cool closing unbalanced parenthesis\\\\) with suffix'!,
},
);
my $numTests = scalar @testSets;