Skip to content

Commit cbd0ece

Browse files
committedJan 31, 2018
Support comma in annotations when merging inline
1 parent 28ff28a commit cbd0ece

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎scripts/sipify.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,9 +343,9 @@ sub fix_annotations {
343343
$line =~ s/SIP_VIRTUALERRORHANDLER\(\s*(\w+)\s*\)/\/VirtualErrorHandler=$1\//;
344344

345345
# combine multiple annotations
346-
# https://regex101.com/r/uvCt4M/3
346+
# https://regex101.com/r/uvCt4M/4
347347
do {no warnings 'uninitialized';
348-
$line =~ s/\/(\w+(=\w+)?)\/\s*\/(\w+(=\w+)?)\//\/$1,$3\//;
348+
$line =~ s/\/([\w,]+(=\w+)?)\/\s*\/([\w,]+(=\w+)?)\//\/$1,$3\//;
349349
(! $3) or dbg_info("combine multiple annotations -- works only for 2");
350350
};
351351

0 commit comments

Comments
 (0)
Please sign in to comment.