mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 03:33:59 +00:00
auto merge of #13922 : Rufflewind/rust/patch-1, r=pnkfelix
Since rust-top-item-beg-re hasn't been defined yet, using defvar instead of setq is more appropriate here (and also silences compilation warnings).
This commit is contained in:
commit
edae0bdabf
@ -380,7 +380,7 @@ idomenu (imenu with `ido-mode') for best mileage.")
|
||||
;;; Defun Motions
|
||||
|
||||
;;; Start of a Rust item
|
||||
(setq rust-top-item-beg-re
|
||||
(defvar rust-top-item-beg-re
|
||||
(concat "^\\s-*\\(?:priv\\|pub\\)?\\s-*"
|
||||
(regexp-opt
|
||||
'("enum" "struct" "type" "mod" "use" "fn" "static" "impl"
|
||||
|
Loading…
Reference in New Issue
Block a user