diff options
author | June McEnroe <june@causal.agency> | 2019-02-18 18:00:20 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-02-18 18:00:20 -0500 |
commit | 062b5f7398da079e067e6ad1992ac97ed32f707d (patch) | |
tree | 4ffa446979c6e8ff582c2ca92be2581fafaa1269 /bin/hi.c | |
parent | Clean up htmlHeader (diff) | |
download | src-062b5f7398da079e067e6ad1992ac97ed32f707d.tar.gz src-062b5f7398da079e067e6ad1992ac97ed32f707d.zip |
Match statics and typedefs as Tag
Diffstat (limited to '')
-rw-r--r-- | bin/hi.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/hi.c b/bin/hi.c index 2656313a..e36d1467 100644 --- a/bin/hi.c +++ b/bin/hi.c @@ -93,8 +93,11 @@ static const struct Syntax CSyntax[] = { .pattern = "define" BL1 "(" PATTERN_ID ")" BL0 "[(]" }, { Tag, .subexp = 2, .pattern = "(enum|struct|union)" SP1 "(" PATTERN_ID ")" SP0 "[{]" }, - { Tag, .parent = ~SET(Keyword), .subexp = 1, + { Tag, .parent = ~SET(Keyword), .newline = true, .subexp = 1, .pattern = "(" PATTERN_ID ")" SP0 "[(][^)]*[)]" SP0 "[{]" }, + { Tag, .newline = true, .subexp = 3, .pattern = + "(static|typedef)" SP1 + "(" "(" PATTERN_ID ")" SP0 "([*]|[[][^]]*[]]|[{][^}]*[}])*" SP0 ")+" }, { String, .parent = SET(Macro), .subexp = 1, .pattern = "include" BL0 "(<[^>]*>)" }, { String, |