From cd38055135720847a3b24c8bca2b6748344ba7fc Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Mon, 18 Feb 2019 19:20:16 -0500 Subject: Fix function-like #define regex A define like #define FOO (1) is not function-like. --- 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 981289b0..c9137c8c 100644 --- a/bin/hi.c +++ b/bin/hi.c @@ -90,7 +90,7 @@ static const struct Syntax CSyntax[] = { { Macro, .pattern = "^" BL0 "#(.|[\\]\n)*" }, { Tag, .parent = SET(Macro), .subexp = 1, - .pattern = "define" BL1 "(" PATTERN_ID ")" BL0 "[(]" }, + .pattern = "define" BL1 "(" PATTERN_ID ")" "[(]" }, { Tag, .subexp = 2, .pattern = "(enum|struct|union)" SP1 "(" PATTERN_ID ")" SP0 "[{]" }, { Tag, .parent = ~SET(Keyword), .newline = true, .subexp = 1, -- cgit 1.4.1