branch: elpa/nix-mode commit 55ed31214a9db9a700c792f883ded815e0e87280 Author: Matthew Bauer <mjbaue...@gmail.com> Commit: Matthew Bauer <mjbaue...@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?"