diff options
| author | bors <bors@rust-lang.org> | 2014-05-12 03:36:53 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-05-12 03:36:53 -0700 |
| commit | 9c94ec4c725409db247a8b7ef999794bb81032f3 (patch) | |
| tree | c00b73d45037143179bb737f9bb225ea8e05cf29 /rust-mode.el | |
| parent | 0617f1cc2bad46964d922ba58635803e350fd6e9 (diff) | |
| parent | 9d8dff85475952dce6f5395d38ace9c7049f0449 (diff) | |
| download | rust-mode-9c94ec4c725409db247a8b7ef999794bb81032f3.tar.gz | |
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).
Diffstat (limited to 'rust-mode.el')
| -rw-r--r-- | rust-mode.el | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/rust-mode.el b/rust-mode.el index 580e5f8..f9142cd 100644 --- a/rust-mode.el +++ b/rust-mode.el @@ -380,11 +380,11 @@ idomenu (imenu with `ido-mode') for best mileage.") ;;; Defun Motions ;;; Start of a Rust item -(setq rust-top-item-beg-re - (concat "^\\s-*\\(?:priv\\|pub\\)?\\s-*" - (regexp-opt - '("enum" "struct" "type" "mod" "use" "fn" "static" "impl" - "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")))) (defun rust-beginning-of-defun (&optional arg) "Move backward to the beginning of the current defun. |
