branch: elpa/nix-mode
commit f29d9865e420d31c49fd42f00a78bb191d15f0af
Author: Matthew Bauer <[email protected]>
Commit: Matthew Bauer <[email protected]>
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."