Skip to content

Commit

Permalink
Support comma in annotations when merging inline
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Jan 31, 2018
1 parent 28ff28a commit cbd0ece
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/sipify.pl
Expand Up @@ -343,9 +343,9 @@ sub fix_annotations {
$line =~ s/SIP_VIRTUALERRORHANDLER\(\s*(\w+)\s*\)/\/VirtualErrorHandler=$1\//;

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

Expand Down

0 comments on commit cbd0ece

Please sign in to comment.