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
commitd68b21f47152278f49e0645fb849ea38eceba98d (patch)
tree3c9141da957fe7c2f072a150b19485e3553ca5ce /bin
parentHide line numbers when rendering mdoc (diff)
downloadsrc-d68b21f47152278f49e0645fb849ea38eceba98d.tar.gz
src-d68b21f47152278f49e0645fb849ea38eceba98d.zip
Avoid matching := assignments as tags
Diffstat (limited to '')
-rw-r--r--bin/hi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/hi.c b/bin/hi.c
index 2fc05a93..b05110bd 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,