diff options
author | Alejandro Colomar <alx.manpages@gmail.com> | 2022-05-09 14:58:37 +0200 |
---|---|---|
committer | Alejandro Colomar <alx.manpages@gmail.com> | 2022-05-09 14:58:37 +0200 |
commit | dc3139d3c954f357393016aef2a6adb6d25e844f (patch) | |
tree | d74f7413d0136bf5f58d7868724bd45326bdc427 /bin | |
parent | fe96c53a1402005d4dd23113abaac3616f79f59a (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-x | bin/grepc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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(?!\().*?[^\\\\]$"; } |