File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -267,15 +267,15 @@ Use idomenu (imenu with `ido-mode') for best mileage.")
267
267
(add-to-list 'auto-mode-alist '(" \\ .rs\\ '" . rust-mode))
268
268
269
269
(defvar rust-top-item-beg-re
270
- (concat " \\ s-*"
270
+ (concat " \\ s-*\\ (?:priv \\ |pub \\ )? \\ s-* "
271
271
; ; TODO some of this does only make sense for `fn' (unsafe, extern...)
272
272
; ; and not other items
273
273
(rust-re-shy (concat (rust-re-shy rust-re-vis) " [[:space:]]+" )) " ?"
274
274
(rust-re-shy (concat (rust-re-shy rust-re-async-or-const) " [[:space:]]+" )) " ?"
275
275
(rust-re-shy (concat (rust-re-shy rust-re-unsafe) " [[:space:]]+" )) " ?"
276
276
(regexp-opt
277
277
'(" enum" " struct" " union" " type" " mod" " use" " fn" " static" " impl"
278
- " extern" " trait" ))
278
+ " extern" " trait" " async " ))
279
279
" \\ _>" )
280
280
" Start of a Rust item." )
281
281
You can’t perform that action at this time.
0 commit comments