summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-02-20 23:02:30 -0500
committerJune McEnroe <june@causal.agency>2019-02-20 23:02:30 -0500
commit294e56d82322e864887de3b41839d8ad7ba2444e (patch)
treee89bf81d85913eeb897521f81c4a932621cc608e
parentUse $PWD in html.sh to pass absolute path to man (diff)
downloadsrc-294e56d82322e864887de3b41839d8ad7ba2444e.tar.gz
src-294e56d82322e864887de3b41839d8ad7ba2444e.zip
Match make targets as Tag
Diffstat (limited to '')
-rw-r--r--bin/hi.c3
1 files changed, 3 insertions, 0 deletions
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,
eJune McEnroe It's actually in a good state now, I think. 2019-02-21Replace "view" with "window"June McEnroe I think originally I didn't want to use the same word as curses WINDOW but it's really much clearer for the user if they're just called windows. UI code probably needs yet another rewrite though. Still feels messy. 2019-02-21Remove ROT13June McEnroe It's just not convenient when it can only do the whole line... 2019-02-21Clean up man pageJune McEnroe 2019-01-26Draw UI before connectingJune McEnroe Otherwise the "Traveling" message isn't visible while connecting. 2019-01-25Avoid unused variable warnings with getyxJune McEnroe 2019-01-25Add GNU/Linux build instructionsJune McEnroe