summary refs log tree commit diff
path: root/bin/hi.c
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
commite01aaa6a4c65534916e4d1754d74eb6ebd3cdab3 (patch)
tree8694e00117f2ffdb00868003b981f068e953411e /bin/hi.c
parentAdd The Long Way to a Small Angry Planet (diff)
downloadsrc-e01aaa6a4c65534916e4d1754d74eb6ebd3cdab3.tar.gz
src-e01aaa6a4c65534916e4d1754d74eb6ebd3cdab3.zip
Highlight line continuations in line comments
Diffstat (limited to 'bin/hi.c')
-rw-r--r--bin/hi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/hi.c b/bin/hi.c
index c6cdcc5a..6fab0a59 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),