From cbd0ece0a6a6a9a7ea2a134d77160879a07efaf1 Mon Sep 17 00:00:00 2001 From: Alessandro Pasotti Date: Wed, 31 Jan 2018 12:34:34 +0100 Subject: [PATCH] Support comma in annotations when merging inline --- scripts/sipify.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/sipify.pl b/scripts/sipify.pl index d1590e45b72..0dcff3d3bbd 100755 --- a/scripts/sipify.pl +++ b/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"); };