Skip to content

Commit

Permalink
add "async fn" to rust-imenu-generic-expression
Browse files Browse the repository at this point in the history
  • Loading branch information
brotzeit committed Oct 22, 2021
1 parent 3627ca4 commit 3463271
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ to the function arguments. When nil, `->' will be indented one level."
(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.
Expand Down

0 comments on commit 3463271

Please sign in to comment.