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

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

[nongnu] elpa/nix-mode c08ae1cdfe 049/500: Add limit arg to looking-back


From: ELPA Syncer
Subject: [nongnu] elpa/nix-mode c08ae1cdfe 049/500: Add limit arg to looking-back.
Date: Sat, 29 Jan 2022 08:26:35 -0500 (EST)

branch: elpa/nix-mode
commit c08ae1cdfeecb49b7a19878ddfb267045df18d8e
Author: Matthew Bauer <mjbauer95@gmail.com>
Commit: Matthew Bauer <mjbauer95@gmail.com>

    Add limit arg to looking-back.
---
 nix-mode.el | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/nix-mode.el b/nix-mode.el
index 1238bf78fb..c77c3a6602 100644
--- a/nix-mode.el
+++ b/nix-mode.el
@@ -218,14 +218,14 @@ If a close brace `}' ends an antiquote, the next 
character begins a string."
 
       ;; any of these should be ignored
       (unless (or
-              (looking-back "/*")
-              (looking-back ";")
-              (looking-back ":")
-              (looking-back "{")
-              (looking-back "(")
-              (looking-back ",")
-              (looking-back "let")
-              (looking-back "in"))
+              (looking-back "/*" 1)
+              (looking-back ";" 1)
+              (looking-back ":" 1)
+              (looking-back "{" 1)
+              (looking-back "(" 1)
+              (looking-back "," 1)
+              (looking-back "let" 1)
+              (looking-back "in" 1))
        t))))
 
 (defun nix-indent-level ()



reply via email to

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