summary refs log tree commit diff
path: root/bin/hi.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-02-07 21:28:56 -0500
committerJune McEnroe <june@causal.agency>2019-02-07 21:28:56 -0500
commit34a1b540f6ff1c917180d084b4a1e86790a43ff2 (patch)
treec698fda6cf9fa7ce2e7c27ebf2d4265c608a4483 /bin/hi.c
parentDetect .mk files as make (diff)
downloadsrc-34a1b540f6ff1c917180d084b4a1e86790a43ff2.tar.gz
src-34a1b540f6ff1c917180d084b4a1e86790a43ff2.zip
Support multi-line C macros in hi
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 6dc6b3b5..604e3895 100644
--- a/bin/hi.c
+++ b/bin/hi.c
@@ -65,7 +65,7 @@ static const struct Syntax CSyntax[] = {
 	{ Keyword, .subexp = 2,
 		.pattern = WB"(break|continue|goto|return)"WB },
 	{ Macro,
-		.pattern = "^#.*" },
+		.pattern = "^#(.|\\\\\n)*" },
 	{ String, .subexp = 1,
 		.pattern = "^#include (<[^>]*>)" },
 	{ String,