summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2022-05-13 17:33:58 +0200
committerAlejandro Colomar <alx.manpages@gmail.com>2022-05-13 17:33:58 +0200
commitf9714f8a986fceeaa03eb3fcffa0cfebf2013422 (patch)
treebf59c7e1f7c79c00e86c20b2805ac08ec188fb8a
parentce63a83836537519571d9d3405cdcb1750d38237 (diff)
grepc: grepc_use_macro: tfix
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 97346c9..42a736a 100755
--- 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"'.*?[^\\]$';
}