Skip to content
Permalink
Browse files

Support comma in annotations when merging inline

  • Loading branch information
elpaso committed Jan 31, 2018
1 parent 28ff28a commit cbd0ece0a6a6a9a7ea2a134d77160879a07efaf1
Showing with 2 additions and 2 deletions.
  1. +2 −2 scripts/sipify.pl
@@ -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");
};

0 comments on commit cbd0ece

Please sign in to comment.
You can’t perform that action at this time.