summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2022-05-09 14:58:37 +0200
committerAlejandro Colomar <alx.manpages@gmail.com>2022-05-09 14:58:37 +0200
commitdc3139d3c954f357393016aef2a6adb6d25e844f (patch)
treed74f7413d0136bf5f58d7868724bd45326bdc427 /bin
parentfe96c53a1402005d4dd23113abaac3616f79f59a (diff)
grepc: grepc_macro_simple: Fix regex for empty macro
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/grepc2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/grepc b/bin/grepc
index 15c2b36..fb10366 100755
--- a/bin/grepc
+++ b/bin/grepc
@@ -24,7 +24,7 @@ function grepc_macro_simple()
grepc_helper '\.[ch]$' \
"#\s*define\s+$1\b[^(]" \
"." \
- "(?s)#\s*define\s+$1\b[^(].*?[^\\\\]$";
+ "(?s)#\s*define\s+$1\b(?!\().*?[^\\\\]$";
}