summary refs log tree commit diff
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
commit98e460cdc211f440882852e30817c966beb07ffb (patch)
tree2e2174f9ff49e4a691920e000e7550db3c04e44c
parentDetect .mk files as make (diff)
downloadsrc-98e460cdc211f440882852e30817c966beb07ffb.tar.gz
src-98e460cdc211f440882852e30817c966beb07ffb.zip
Support multi-line C macros in hi
-rw-r--r--bin/hi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/hi.c b/bin/hi.c
index a61a22ed..d1012d4b 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,