emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/rust-mode 41642f0 481/486: rust-end-of-string: Move defini


From: ELPA Syncer
Subject: [nongnu] elpa/rust-mode 41642f0 481/486: rust-end-of-string: Move definition
Date: Sat, 7 Aug 2021 09:26:19 -0400 (EDT)

branch: elpa/rust-mode
commit 41642f0573d51120b4ca46113c63977a55d68b27
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: brotzeit <brotzeitmacher@gmail.com>

    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

[Prev in Thread] Current Thread [Next in Thread]