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

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

[nongnu] elpa/haskell-ts-mode e66403b8e6 59/61: Changes to indentatoin f


From: ELPA Syncer
Subject: [nongnu] elpa/haskell-ts-mode e66403b8e6 59/61: Changes to indentatoin for infix
Date: Wed, 4 Sep 2024 04:00:32 -0400 (EDT)

branch: elpa/haskell-ts-mode
commit e66403b8e66b643c459fdd2346829f12cfada910
Author: pranshu <pranshusharma366@gmail.com>
Commit: pranshu <pranshusharma366@gmail.com>

    Changes to indentatoin for infix
    
    Before indentation had bug which would cause breaking AST in speicfic
    scinaroes such as when infix was in 2 lines with operator in second
    line
---
 haskell-ts-mode.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/haskell-ts-mode.el b/haskell-ts-mode.el
index 5410ce73bc..ff6ab5572e 100644
--- a/haskell-ts-mode.el
+++ b/haskell-ts-mode.el
@@ -146,8 +146,8 @@
        ((parent-is "comment") column-0 0)
        ((parent-is "imports") column-0 0)
        ;; Infix
-       ((parent-is "infix") standalone-parent 1)
-       ((node-is "infix") standalone-parent 2)
+       ((node-is "infix") standalone-parent 1)
+       ((parent-is "infix") grand-parent 0)
        ;; Lambda
        ((parent-is "lambda") standalone-parent 2)
 



reply via email to

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