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 | 98e460cdc211f440882852e30817c966beb07ffb (patch) | |
tree | 2e2174f9ff49e4a691920e000e7550db3c04e44c /bin | |
parent | Detect .mk files as make (diff) | |
download | src-98e460cdc211f440882852e30817c966beb07ffb.tar.gz src-98e460cdc211f440882852e30817c966beb07ffb.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 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, |