From 34a1b540f6ff1c917180d084b4a1e86790a43ff2 Mon Sep 17 00:00:00 2001 From: June 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 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, -- cgit 1.4.1