diff options
| author | Sebastian Wiesner <swiesner@lunaryorn.com> | 2015-05-03 12:48:42 +0200 |
|---|---|---|
| committer | Sebastian Wiesner <swiesner@lunaryorn.com> | 2015-05-03 12:48:42 +0200 |
| commit | 96f7f79da777618232eb8d794c46b1ff3c4c7b72 (patch) | |
| tree | 0e4b8e61328ca8de47771e26f9104e7842ec6a9e | |
| parent | ded5ef73e26f90f7b9155fa412b1a84877cc24f6 (diff) | |
| download | rust-mode-96f7f79da777618232eb8d794c46b1ff3c4c7b72.tar.gz | |
Fix free-variable warnings
Constant must be defined before being used, to avoid warnings about free
variables
| -rw-r--r-- | rust-mode.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rust-mode.el b/rust-mode.el index ad1af60..bb800da 100644 --- a/rust-mode.el +++ b/rust-mode.el @@ -104,6 +104,8 @@ (backward-up-list) (back-to-indentation)))) +(defconst rust-re-ident "[[:word:][:multibyte:]_][[:word:][:multibyte:]_[:digit:]]*") + (defun rust-align-to-method-chain () (save-excursion ;; for method-chain alignment to apply, we must be looking at @@ -318,7 +320,6 @@ "bool" "str" "char")) -(defconst rust-re-ident "[[:word:][:multibyte:]_][[:word:][:multibyte:]_[:digit:]]*") (defconst rust-re-CamelCase "[[:upper:]][[:word:][:multibyte:]_[:digit:]]*") (defun rust-re-word (inner) (concat "\\<" inner "\\>")) (defun rust-re-grab (inner) (concat "\\(" inner "\\)")) |
