branch: elpa/nix-mode
commit 09d40e95e2133029359a485efd88e12e11f523f2
Author: Matthew Bauer <[email protected]>
Commit: Matthew Bauer <[email protected]>
Skip braces with hanging indents
---
nix-mode.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/nix-mode.el b/nix-mode.el
index fa727c8a71..8b39d2e3c1 100644
--- a/nix-mode.el
+++ b/nix-mode.el
@@ -180,8 +180,10 @@ If a close brace `}' ends an antiquote, the next character
begins a string."
(beginning-of-line)
(skip-chars-forward "[:space:]")
(unless (or
- (looking-at "}")
- (looking-at ")"))
+ (looking-at "}")
+ (looking-at ")")
+ (looking-at "{")
+ (looking-at ")"))
(forward-line -1)
(end-of-line)
(skip-chars-backward "\n[:space:]")