From 1ebce46abaa573479e9e0571217e963b1eefb506 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Mon, 18 Feb 2019 19:27:46 -0500 Subject: Match whitespace between * [] {} --- bin/hi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin/hi.c') diff --git a/bin/hi.c b/bin/hi.c index 1edaf507..1daf56c4 100644 --- a/bin/hi.c +++ b/bin/hi.c @@ -97,7 +97,8 @@ static const struct Syntax CSyntax[] = { .pattern = "(" PATTERN_ID ")" SP0 "[(][^)]*[)]" SP0 "[{]" }, { Tag, .newline = true, .subexp = 3, .pattern = "(static|typedef)" SP1 - "(" "(" PATTERN_ID ")" SP0 "([*]|[[][^]]*[]]|[{][^}]*[}])*" SP0 ")+" }, + "(" "(" PATTERN_ID ")" SP0 + "(" "[*]" "|" "[[][^]]*[]]" "|" "[{][^}]*[}]" "|" SP0 ")*" ")+" }, { String, .parent = SET(Macro), .subexp = 1, .pattern = "include" BL0 "(<[^>]*>)" }, { String, -- cgit 1.4.1