summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-02-18 19:27:46 -0500
committerJune McEnroe <june@causal.agency>2019-02-18 19:27:46 -0500
commit1ebce46abaa573479e9e0571217e963b1eefb506 (patch)
tree7c7f600bfe0e22aab5460ca6d17afaf941d0f3a5 /bin
parentFix function-like #define regex (diff)
downloadsrc-1ebce46abaa573479e9e0571217e963b1eefb506.tar.gz
src-1ebce46abaa573479e9e0571217e963b1eefb506.zip
Match whitespace between * [] {}
Diffstat (limited to 'bin')
-rw-r--r--bin/hi.c3
1 files changed, 2 insertions, 1 deletions
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,
/torus/commit/torus.h?h=daemon&id=46abcc7b70cfa8da069aceeddb0039b3e18827cf&follow=1'>Remove leading blank linesJune McEnroe 2017-09-27Add merge.c to READMEJune McEnroe 2017-09-03Assert client coords are valid after movementJune McEnroe 2017-09-03Relicense AGPLJune McEnroe 2017-09-01Revert "Add client readOnly mode"June McEnroe 2017-09-01Remove clientRemove call from clientCastJune McEnroe 2017-09-01Add client readOnly modeJune McEnroe 2017-08-31Clean up merge toolJune McEnroe 2017-08-31Choose B for tiles with equal modify timesJune McEnroe 2017-08-31Add quick data file merge toolJune McEnroe 2017-08-30Use only foreground color for selecting spawnJune McEnroe 2017-08-29Add four additional spawnsJune McEnroe 2017-08-28Add respawningJune McEnroe 2017-08-26Move license above includesJune McEnroe 2017-08-26Snapshot metadataJune McEnroe 2017-08-26Add meta.c to READMEJune McEnroe 2017-08-26Use MakefileJune McEnroe