summary refs log tree commit diff
path: root/bin/mtags.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-01-20 13:30:27 -0500
committerJune McEnroe <june@causal.agency>2021-01-20 13:30:27 -0500
commit3dd2cbde032f02fce7fab4bba03405bd9a289314 (patch)
tree35d5191255be824317373e568dfe6a83f25de860 /bin/mtags.c
parentPrefer tag matches not preceded by [[:alnum:]] (diff)
downloadsrc-3dd2cbde032f02fce7fab4bba03405bd9a289314.tar.gz
src-3dd2cbde032f02fce7fab4bba03405bd9a289314.zip
Avoid matching ':' in make tags
Otherwise a :: rule includes one of the ':'s in the tag name.
Diffstat (limited to 'bin/mtags.c')
-rw-r--r--bin/mtags.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/mtags.c b/bin/mtags.c
index 8f83496c..f055b443 100644
--- a/bin/mtags.c
+++ b/bin/mtags.c
@@ -53,7 +53,7 @@ int main(int argc, char *argv[]) {
 		|| regcomp(&makeFile, "(^|/)Makefile|[.]mk$", REG_EXTENDED | REG_NOSUB)
 		|| regcomp(
 			&makeLine,
-			"^([.][^$A-Z][^$[:space:]]*|[^.$][^$[:space:]]*):",
+			"^([.][^:$A-Z][^:$[:space:]]*|[^.:$][^:$[:space:]]*):",
 			REG_EXTENDED
 		)
 		|| regcomp(&mdocFile, "[.][1-9]$", REG_EXTENDED | REG_NOSUB)