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

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

[nongnu] elpa/nix-mode 55ed31214a 053/500: Add "in" for closing.


From: ELPA Syncer
Subject: [nongnu] elpa/nix-mode 55ed31214a 053/500: Add "in" for closing.
Date: Sat, 29 Jan 2022 08:26:35 -0500 (EST)

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

    Add "in" for closing.
---
 nix-mode.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/nix-mode.el b/nix-mode.el
index 6affefb98c..b3a186fdc0 100644
--- a/nix-mode.el
+++ b/nix-mode.el
@@ -175,8 +175,6 @@ If a close brace `}' ends an antiquote, the next character 
begins a string."
     (setq lets 0)
     (setq ins 0)
     (beginning-of-line)
-    (if (looking-at "in")
-       (setq ins (+ ins 1)))
     (while (not (eq (point) (point-min)))
       (forward-line -1)
       (cond
@@ -199,7 +197,9 @@ If a close brace `}' ends an antiquote, the next character 
begins a string."
      (looking-at ")")
      (looking-at "}")
      (looking-at "''")
-     (looking-at ","))))
+     (looking-at ",")
+     (looking-at "in[[:space:]]")
+     (looking-at "in$"))))
 
 (defun nix-indent-level-is-hanging ()
   "Is hanging?"



reply via email to

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