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

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

[nongnu] elpa/rust-mode 0099b2c0bb 2/2: Merge pull request #431 from phs


From: ELPA Syncer
Subject: [nongnu] elpa/rust-mode 0099b2c0bb 2/2: Merge pull request #431 from phst/looking-back
Date: Tue, 28 Dec 2021 11:58:19 -0500 (EST)

branch: elpa/rust-mode
commit 0099b2c0bb502d77ff61f37c02059e082a9610b6
Merge: bc71aa6006 ffaefd7253
Author: brotzeit <brotzeitmacher@gmail.com>
Commit: GitHub <noreply@github.com>

    Merge pull request #431 from phst/looking-back
    
    Avoid obsolete calling convention of ‘looking-back’.
---
 rust-mode.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/rust-mode.el b/rust-mode.el
index 773251d8f6..ebc2bbc344 100644
--- a/rust-mode.el
+++ b/rust-mode.el
@@ -227,7 +227,8 @@ See `prettify-symbols-compose-predicate'."
        (pcase match
          ("||" (not (save-excursion
                       (goto-char start)
-                      (looking-back "\\(?:\\<move\\|[[({:=,;]\\) *"))))
+                      (looking-back "\\(?:\\<move\\|[[({:=,;]\\) *"
+                                    (line-beginning-position)))))
          ("&&" (char-equal (char-after end) ?\s))
          (_ t))))
 



reply via email to

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