summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-12-19 02:34:08 -0500
committerJune McEnroe <june@causal.agency>2019-12-19 02:34:08 -0500
commitef41b4a1a81baa4012038ada0b69c20651c56c81 (patch)
tree91777a4e438d2ac2c4cbe6c60e34d8779df35995 /bin
parentAvoid matching := assignments as tags (diff)
downloadsrc-ef41b4a1a81baa4012038ada0b69c20651c56c81.tar.gz
src-ef41b4a1a81baa4012038ada0b69c20651c56c81.zip
Fix matching make tags with no sources
Diffstat (limited to 'bin')
-rw-r--r--bin/hi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/hi.c b/bin/hi.c
index 1bff2cc4..af7470da 100644
--- a/bin/hi.c
+++ b/bin/hi.c
@@ -142,8 +142,8 @@ static const struct Syntax MakeSyntax[] = {
 		.pattern = WB "([.](PHONY|PRECIOUS|SUFFIXES))" WB },
 	{ Macro,
 		.pattern = "^ *-?include" },
-	{ Tag, .parent = ~SET(Keyword), .subexp = 1,
-		.pattern = "(" MAKE_TARGET ")" "(" BL1 MAKE_TARGET ")*" BL0 ":[^=]" },
+	{ Tag, .parent = ~SET(Keyword), .subexp = 1, .pattern =
+		"(" MAKE_TARGET ")" "(" BL1 MAKE_TARGET ")*" BL0 ":([^=]|$)" },
 	{ String, .subexp = 1,
 		.pattern = "[._[:alnum:]]+" BL0 "[!+:?]?=" BL0 "(.*)" },
 	{ Normal,