From: Alejandro Colomar Date: Wed, 25 May 2022 21:03:12 +0000 (+0200) Subject: grepc: -tut: Fix regex for braces in the same line as 'struct' X-Git-Tag: man-pages-6.17~240^2~10^2~69 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa8dca254b5ff98018af48c052dbe118a1db29b4;p=thirdparty%2Fman-pages.git grepc: -tut: Fix regex for braces in the same line as 'struct' Signed-off-by: Alejandro Colomar --- diff --git a/bin/grepc b/bin/grepc index 5a278cca2..6c24765d4 100755 --- a/bin/grepc +++ b/bin/grepc @@ -357,7 +357,7 @@ grepc_use_type_struct_union() grepc_helper \ "\b(struct|union)\b" \ "\b$1\b" \ - '(?s)^(?!^[ \t]*typedef\b)([\w[]([\w\s\(,\)[\]*]|::)*[\w\s\)*\]]\s+)?\b(struct|union)\b([\w \t[\]]|::)*\w+\n*([ \t]*){(?:(?!^\5?}).)*?'"$1"'.*?^\5}.*?;'; + '(?s)^(?!^[ \t]*typedef\b)([\w[]([\w\s\(,\)[\]*]|::)*[\w\s\)*\]]\s+)?\b(struct|union)\b([\w \t[\]]|::)*\w+[ \t]*\n*([ \t]*){(?:(?!^\5?}).)*?'"$1"'.*?^\5}.*?;'; }