diff options
author | June McEnroe <june@causal.agency> | 2019-02-18 19:27:46 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-02-18 19:27:46 -0500 |
commit | 25e13814fe04576ed949d2e8f085ac23d908bd29 (patch) | |
tree | 5965380fac24e8be5a515ded10a004edc93718c4 | |
parent | Fix function-like #define regex (diff) | |
download | src-25e13814fe04576ed949d2e8f085ac23d908bd29.tar.gz src-25e13814fe04576ed949d2e8f085ac23d908bd29.zip |
Match whitespace between * [] {}
-rw-r--r-- | bin/hi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/hi.c b/bin/hi.c index c9137c8c..a60a0064 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, |