Skip to content

Commit 844bb51

Browse files
authored
add support for "async fn"
Async functions do not show up. Adding this causes them to show in the imenu.
1 parent 4fd637c commit 844bb51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1292,7 +1292,7 @@ whichever comes first."
12921292
(defvar rust-imenu-generic-expression
12931293
(append (mapcar #'(lambda (x)
12941294
(list (capitalize x) (rust-re-item-def-imenu x) 1))
1295-
'("enum" "struct" "union" "type" "mod" "fn" "trait" "impl"))
1295+
'("async fn" "enum" "struct" "union" "type" "mod" "fn" "trait" "impl"))
12961296
`(("Macro" ,(rust-re-item-def-imenu "macro_rules!") 1)))
12971297
"Value for `imenu-generic-expression' in Rust mode.
12981298

0 commit comments

Comments
 (0)