branch: elpa/rust-mode
commit 41642f0573d51120b4ca46113c63977a55d68b27
Author: Jonas Bernoulli <[email protected]>
Commit: brotzeit <[email protected]>

    rust-end-of-string: Move definition
---
 rust-mode.el | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/rust-mode.el b/rust-mode.el
index 498481f..f35a947 100644
--- a/rust-mode.el
+++ b/rust-mode.el
@@ -485,6 +485,13 @@ Does not match type annotations of the form \"foo::<\"."
              ("use" . font-lock-constant-face)
              ("fn" . font-lock-function-name-face)))))
 
+(defun rust-end-of-string ()
+  "Skip to the end of the current string."
+  (save-excursion
+    (skip-syntax-forward "^\"|")
+    (skip-syntax-forward "\"|")
+    (point)))
+
 (defun rust-looking-back-str (str)
   "Return non-nil if there's a match on the text before point and STR.
 Like `looking-back' but for fixed strings rather than regexps (so
@@ -1601,13 +1608,6 @@ This is written mainly to be used as 
`end-of-defun-function' for Rust."
     ;; There is no opening brace, so consider the whole buffer to be one 
"defun"
     (goto-char (point-max))))
 
-(defun rust-end-of-string ()
-  "Skip to the end of the current string."
-  (save-excursion
-    (skip-syntax-forward "^\"|")
-    (skip-syntax-forward "\"|")
-    (point)))
-
 ;;; Formatting using rustfmt
 
 (defconst rust-rustfmt-buffername "*rustfmt*")

Reply via email to