branch: elpa/nix-mode
commit 3ef4647aa26768c2175628eca7a9fe921968e087
Author: Matthew Bauer <[email protected]>
Commit: Matthew Bauer <[email protected]>
Fixup lets/ins counting.
---
nix-mode.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/nix-mode.el b/nix-mode.el
index dcb9887460..6affefb98c 100644
--- a/nix-mode.el
+++ b/nix-mode.el
@@ -175,6 +175,8 @@ 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