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:
parent
f40992f217
commit
a48b16dbfc
5 changed files with 55 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue