From 97c43482654e5ecc19114302d462c9ac558feda2 Mon Sep 17 00:00:00 2001 From: June 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/hi.c') diff --git a/bin/hi.c b/bin/hi.c index 2749c08e..1edaf507 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