summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-02-18 19:08:27 -0500
committerJune McEnroe <june@causal.agency>2019-02-18 19:08:27 -0500
commit88289ed91d756ca8c842e78c54af5782bfd78fa8 (patch)
tree867e8d53a11cf6cb9f98910a4061d92a29c3880f
parentMatch sh functions as Tag (diff)
downloadsrc-88289ed91d756ca8c842e78c54af5782bfd78fa8.tar.gz
src-88289ed91d756ca8c842e78c54af5782bfd78fa8.zip
Match Tag in Rust
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,
p;follow=1'>Remove wiki scriptJune McEnroe 2020-02-19Add The Obelisk GateJune McEnroe 2020-02-17Add Four Tet — HandsJune McEnroe 2020-02-12Simplify macOS notify-sendJune McEnroe 2020-02-12Add imbox and notemap to pageJune McEnroe 2020-02-12Collapse simple linksJune McEnroe 2020-02-12Move catgirl up the pageJune McEnroe 2020-02-12Update catgirl pty grabJune McEnroe 2020-02-12Link to cgit /about pages where appropriateJune McEnroe 2020-02-11Separate LINKS from BINS for html to workJune McEnroe 2020-02-11Add margin to Bl-bullet itemsJune McEnroe 2020-02-10Match URLs inside parens or with paired parens insideJune McEnroe 2020-02-10Duplicate effective URL before passing it back to curlJune McEnroe 2020-02-09Add To Be Taught, If FortunateJune McEnroe 2020-02-04Add The Future of Another TimelineJune McEnroe 2020-01-31Reorganize the Makefile for the umpteenth timeJune McEnroe 2020-01-28Change scout sensitivity to 1.4June McEnroe 2020-01-28Import shows.txtJune McEnroe