We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0550b79 + 77c56f7 commit edae0bdCopy full SHA for edae0bd
src/etc/emacs/rust-mode.el
@@ -380,11 +380,11 @@ idomenu (imenu with `ido-mode') for best mileage.")
380
;;; Defun Motions
381
382
;;; Start of a Rust item
383
-(setq rust-top-item-beg-re
384
- (concat "^\\s-*\\(?:priv\\|pub\\)?\\s-*"
385
- (regexp-opt
386
- '("enum" "struct" "type" "mod" "use" "fn" "static" "impl"
387
- "extern" "impl" "static" "trait"))))
+(defvar rust-top-item-beg-re
+ (concat "^\\s-*\\(?:priv\\|pub\\)?\\s-*"
+ (regexp-opt
+ '("enum" "struct" "type" "mod" "use" "fn" "static" "impl"
+ "extern" "impl" "static" "trait"))))
388
389
(defun rust-beginning-of-defun (&optional arg)
390
"Move backward to the beginning of the current defun.
0 commit comments