From 88289ed91d756ca8c842e78c54af5782bfd78fa8 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Mon, 18 Feb 2019 19:08:27 -0500 Subject: Match Tag in Rust --- bin/hi.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bin/hi.c') 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, -- cgit 1.4.1