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

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

[nongnu] elpa/haskell-ts-mode cf0c9c308c 4/8: Changed indentation of inf


From: ELPA Syncer
Subject: [nongnu] elpa/haskell-ts-mode cf0c9c308c 4/8: Changed indentation of infix
Date: Mon, 16 Sep 2024 10:00:12 -0400 (EDT)

branch: elpa/haskell-ts-mode
commit cf0c9c308c55fe8b1ae5e2f3f1f1465b576c925f
Author: pranshu sharma <pranshu@pebl>
Commit: pranshu sharma <pranshu@pebl>

    Changed indentation of infix
    
    Finally something I am happy with
---
 haskell-ts-mode.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/haskell-ts-mode.el b/haskell-ts-mode.el
index 7ff4d7eff3..54e8e02de2 100644
--- a/haskell-ts-mode.el
+++ b/haskell-ts-mode.el
@@ -203,7 +203,11 @@
        ((parent-is "imports") column-0 0)
        ;; Infix
        ((node-is "infix") standalone-parent 1)
-       ((parent-is "infix") parent 0)
+       ((parent-is "infix")
+       ;; Parent's first child
+       (lambda (_ parent _)
+         (treesit-node-start (treesit-node-child parent 0)))
+       0)
        ;; Lambda
        ((parent-is "lambda") standalone-parent 2)
 



reply via email to

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