summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-03-14 19:07:54 -0400
committerJune McEnroe <june@causal.agency>2019-03-14 19:07:54 -0400
commit0b658114ef65c7aad46315840964d33003dcd5af (patch)
tree0435ebf4c0e7fedd1cb0a6119e916b3cd2ecf279 /bin
parentAdd The Long Way to a Small Angry Planet (diff)
downloadsrc-0b658114ef65c7aad46315840964d33003dcd5af.tar.gz
src-0b658114ef65c7aad46315840964d33003dcd5af.zip
Highlight line continuations in line comments
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 3c312c4a..f3295217 100644
--- a/bin/hi.c
+++ b/bin/hi.c
@@ -117,7 +117,7 @@ static const struct Syntax CSyntax[] = {
 		"[AEFGXacdefginopsux]" // format specifier
 	},
 	{ Comment, .parent = ~SET(String),
-		.pattern = "//.*" },
+		.pattern = "//(.|[\\]\n)*" },
 	{ Comment, .parent = ~SET(String), .newline = true,
 		.pattern = PATTERN_BC },
 	{ Todo, .parent = SET(Comment),