From 294e56d82322e864887de3b41839d8ad7ba2444e Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Wed, 20 Feb 2019 23:02:30 -0500 Subject: Match make targets as Tag --- bin/hi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/hi.c b/bin/hi.c index 8b4bb5c9..a37b1245 100644 --- a/bin/hi.c +++ b/bin/hi.c @@ -126,11 +126,14 @@ static const struct Syntax CSyntax[] = { // }}} // make syntax {{{ +#define MAKE_TARGET "[-./_[:alnum:]]+" static const struct Syntax MakeSyntax[] = { { Keyword, .subexp = 2, .pattern = WB "([.](PHONY|PRECIOUS|SUFFIXES))" WB }, { Macro, .pattern = "^ *-?include" }, + { Tag, .parent = ~SET(Keyword), .subexp = 1, + .pattern = "(" MAKE_TARGET ")" "(" BL0 MAKE_TARGET ")*" BL0 ":" }, { String, .subexp = 1, .pattern = "[._[:alnum:]]+" BL0 "[!+:?]?=" BL0 "(.*)" }, { Normal, -- cgit 1.4.1