From ef41b4a1a81baa4012038ada0b69c20651c56c81 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Thu, 19 Dec 2019 02:34:08 -0500 Subject: Fix matching make tags with no sources --- bin/hi.c | 4 ++-- 1 file 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, -- cgit 1.4.1