From 844bb51c7991cd43ec83265fae2cb349f88053bc Mon Sep 17 00:00:00 2001 From: Harold Carr Date: Sat, 23 Nov 2019 09:21:06 -0700 Subject: add support for "async fn" Async functions do not show up. Adding this causes them to show in the imenu. --- rust-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust-mode.el b/rust-mode.el index e98e488..026b481 100644 --- a/rust-mode.el +++ b/rust-mode.el @@ -1292,7 +1292,7 @@ whichever comes first." (defvar rust-imenu-generic-expression (append (mapcar #'(lambda (x) (list (capitalize x) (rust-re-item-def-imenu x) 1)) - '("enum" "struct" "union" "type" "mod" "fn" "trait" "impl")) + '("async fn" "enum" "struct" "union" "type" "mod" "fn" "trait" "impl")) `(("Macro" ,(rust-re-item-def-imenu "macro_rules!") 1))) "Value for `imenu-generic-expression' in Rust mode. -- cgit v1.2.3