From aa8dca254b5ff98018af48c052dbe118a1db29b4 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Wed, 25 May 2022 23:03:12 +0200 Subject: [PATCH] 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 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}.*?;'; } -- 2.47.3