summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--bin/hi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/hi.c b/bin/hi.c
index e65f8520..981289b0 100644
--- a/bin/hi.c
+++ b/bin/hi.c
@@ -192,6 +192,8 @@ static const struct Syntax RustSyntax[] = {
 		"|" "return|struct|super|trait|true|try|type(of)?|union|uns(afe|ized)"
 		"|" "use|virtual|where|while|yield"
 		")" WB },
+	{ Tag, .subexp = 2, .pattern =
+		"(enum|fn|macro_rules!|mod|struct|type|union)" SP1 "(" PATTERN_ID ")" },
 	{ Macro, .newline = true,
 		.pattern = "#!?[[][^]]*[]]" },
 	{ Macro,