summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-12-19 02:28:40 -0500
committerJune McEnroe <june@causal.agency>2019-12-19 02:28:40 -0500
commitd595b389262c65cb758d3c2e32835b768b35b957 (patch)
tree3f1cc02597bf7b9f2ea1fb1a41a3855a9d5e6e23 /bin
parentHide line numbers when rendering mdoc (diff)
downloadsrc-d595b389262c65cb758d3c2e32835b768b35b957.tar.gz
src-d595b389262c65cb758d3c2e32835b768b35b957.zip
Avoid matching := assignments as tags
Diffstat (limited to 'bin')
-rw-r--r--bin/hi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/hi.c b/bin/hi.c
index 42f34677..1bff2cc4 100644
--- a/bin/hi.c
+++ b/bin/hi.c
@@ -143,7 +143,7 @@ static const struct Syntax MakeSyntax[] = {
 	{ Macro,
 		.pattern = "^ *-?include" },
 	{ Tag, .parent = ~SET(Keyword), .subexp = 1,
-		.pattern = "(" MAKE_TARGET ")" "(" BL1 MAKE_TARGET ")*" BL0 ":" },
+		.pattern = "(" MAKE_TARGET ")" "(" BL1 MAKE_TARGET ")*" BL0 ":[^=]" },
 	{ String, .subexp = 1,
 		.pattern = "[._[:alnum:]]+" BL0 "[!+:?]?=" BL0 "(.*)" },
 	{ Normal,