From 98e460cdc211f440882852e30817c966beb07ffb Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Thu, 7 Feb 2019 21:28:56 -0500 Subject: Support multi-line C macros in hi --- bin/hi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') 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, -- cgit 1.4.1