diff options
author | Alejandro Colomar <alx.manpages@gmail.com> | 2022-05-25 23:03:12 +0200 |
---|---|---|
committer | Alejandro Colomar <alx.manpages@gmail.com> | 2022-05-25 23:03:12 +0200 |
commit | d3426cbfffa0bcff3e9c805869c6bee11f5c9e44 (patch) | |
tree | a9eabc83fb4e1c1df016b570f36dbfb9aeb045a3 | |
parent | 76cc73d3adc8215860f332ff2791d634d6edcf16 (diff) |
grepc: -tut: Fix regex for braces in the same line as 'struct'
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
-rwxr-xr-x | bin/grepc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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}.*?;'; } |