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

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

[nongnu] elpa/nix-mode f29d9865e4 055/500: Fixup hanging indents.


From: ELPA Syncer
Subject: [nongnu] elpa/nix-mode f29d9865e4 055/500: Fixup hanging indents.
Date: Sat, 29 Jan 2022 08:26:35 -0500 (EST)

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

    Fixup hanging indents.
---
 nix-mode.el | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/nix-mode.el b/nix-mode.el
index f4109b9699..595a82bdb5 100644
--- a/nix-mode.el
+++ b/nix-mode.el
@@ -229,17 +229,18 @@ If a close brace `}' ends an antiquote, the next 
character begins a string."
        (goto-char (nth 8 (syntax-ppss)))
        (skip-chars-backward "\n[:space:]"))
 
-      ;; any of these should be ignored
       (or
        (looking-back "=" 1)
        (looking-back "//" 1)
        (looking-back ")" 1)
        (looking-back "}" 1)
        (looking-back "\"" 1)
+       ;; (looking-back ":" 1)
        (and
-       (looking-back "[a-zA-Z0-9]" 1)
-       (not (looking-back "in" 1))
-       (not (looking-back "let" 1)))))))
+               (looking-back "[a-zA-Z0-9]" 1)
+               (not (looking-back "[[:space:]]in" 1))
+               (not (looking-back "^in" 1))
+               (not (looking-back "let" 1)))))))
 
 (defun nix-indent-level ()
   "Get current indent level."



reply via email to

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