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

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

[nongnu] elpa/nix-mode 79a3715c3d 303/500: Improve handling of 'in' afte


From: ELPA Syncer
Subject: [nongnu] elpa/nix-mode 79a3715c3d 303/500: Improve handling of 'in' after a hanging 'let'.
Date: Sat, 29 Jan 2022 08:27:16 -0500 (EST)

branch: elpa/nix-mode
commit 79a3715c3da662d94dfab4083ecdc4ca522c03d6
Author: Jakub Piecuch <j.piecuch96@gmail.com>
Commit: Jakub Piecuch <j.piecuch96@gmail.com>

    Improve handling of 'in' after a hanging 'let'.
---
 nix-mode.el | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/nix-mode.el b/nix-mode.el
index afb3aa96c1..c08ca91e24 100644
--- a/nix-mode.el
+++ b/nix-mode.el
@@ -453,6 +453,10 @@ STRING-TYPE type of string based off of Emacs syntax table 
types"
        (nix-smie--indent-anchor))))
     (`(:after . ",")
      (smie-rule-parent tab-width))
+    (`(:before . "in")
+     (forward-word)
+     (smie-backward-sexp t)
+     (nix-smie--indent-anchor 0))
     (`(:before . ",")
      ;; The parent is either the enclosing "{" or some previous ",".
      ;; In both cases this is what we want to align to.



reply via email to

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