]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
grepc: grepc_use_macro: tfix
authorAlejandro Colomar <alx.manpages@gmail.com>
Fri, 13 May 2022 15:33:58 +0000 (17:33 +0200)
committerAlejandro Colomar <alx@kernel.org>
Wed, 29 Oct 2025 20:29:01 +0000 (21:29 +0100)
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
bin/grepc

index 97346c95925e9bb6701b956ad20e2ca04d70e4af..42a736ab16deca2e62b3904be48809d2c57dc336 100755 (executable)
--- a/bin/grepc
+++ b/bin/grepc
@@ -299,7 +299,7 @@ grepc_use_macro()
        grepc_helper \
          "\b$1\b" \
          'define' \
-         '(?s)^[ \t]*#\s*define\s+\w+\b(\([^\)]*\))?(?:(?![^\\]$).)*'"$1"'.*?[^\\]$';
+         '(?s)^[ \t]*#\s*define\s+\w+\b(\([^\)]*\))?(?:(?![^\\]$).)*'"\b$1\b"'.*?[^\\]$';
 }