diff options
author | June McEnroe <june@causal.agency> | 2019-02-07 21:28:56 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-02-07 21:28:56 -0500 |
commit | 34a1b540f6ff1c917180d084b4a1e86790a43ff2 (patch) | |
tree | c698fda6cf9fa7ce2e7c27ebf2d4265c608a4483 /bin | |
parent | Detect .mk files as make (diff) | |
download | src-34a1b540f6ff1c917180d084b4a1e86790a43ff2.tar.gz src-34a1b540f6ff1c917180d084b4a1e86790a43ff2.zip |
Support multi-line C macros in hi
Diffstat (limited to 'bin')
-rw-r--r-- | bin/hi.c | 2 |
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, |