branch: elpa/nix-mode
commit c08ae1cdfeecb49b7a19878ddfb267045df18d8e
Author: Matthew Bauer <[email protected]>
Commit: Matthew Bauer <[email protected]>

    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