summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-07-25 23:12:55 -0400
committerJune McEnroe <june@causal.agency>2019-07-25 23:12:55 -0400
commit83286e886c425df93ebdfc3f60aed65e823f5561 (patch)
treeabcf3bb8b00d96eb55ba84af2dbafe29afec35da /bin
parentGenerate index.html with links from bin.7 (diff)
downloadsrc-83286e886c425df93ebdfc3f60aed65e823f5561.tar.gz
src-83286e886c425df93ebdfc3f60aed65e823f5561.zip
Don't match comments in strings in make
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 3f2d35cf..d2491701 100644
--- a/bin/hi.c
+++ b/bin/hi.c
@@ -161,7 +161,7 @@ static const struct Syntax MakeSyntax[] = {
 		.pattern = "[$][{](" "[^$}]" "|" "[$][{][^}]*[}]" ")*[}]" },
 	{ Escape,
 		.pattern = "[$][$]" },
-	{ Comment,
+	{ Comment, .parent = ~SET(String),
 		.pattern = "#.*" },
 	{ Todo, .parent = SET(Comment),
 		.pattern = PATTERN_TODO },