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
|
|
@ -46,7 +46,9 @@ my $parenthesis;
|
|||
$parenthesis = qr{
|
||||
\( # Start with '(',
|
||||
(?: # Followed by
|
||||
(?>[^()]+) # Non-parenthesis
|
||||
(?>\\[()]) # Escaped parenthesis
|
||||
| # or
|
||||
(?>[^()]) # Non-parenthesis
|
||||
| # or
|
||||
(??{ $parenthesis }) # a balanced parenthesis block
|
||||
)* # zero or more times
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue