summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2022-05-25 23:03:12 +0200
committerAlejandro Colomar <alx.manpages@gmail.com>2022-05-25 23:03:12 +0200
commitd3426cbfffa0bcff3e9c805869c6bee11f5c9e44 (patch)
treea9eabc83fb4e1c1df016b570f36dbfb9aeb045a3
parent76cc73d3adc8215860f332ff2791d634d6edcf16 (diff)
grepc: -tut: Fix regex for braces in the same line as 'struct'
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
-rwxr-xr-xbin/grepc2
1 files changed, 1 insertions, 1 deletions
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}.*?;';
}