From d3426cbfffa0bcff3e9c805869c6bee11f5c9e44 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Wed, 25 May 2022 23:03:12 +0200 Subject: grepc: -tut: Fix regex for braces in the same line as 'struct' Signed-off-by: Alejandro Colomar --- bin/grepc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/grepc b/bin/grepc index 5a278cc..6c24765 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}.*?;'; } -- cgit v1.2.3