branch: elpa/haskell-ts-mode commit f19d98c1af06c87b2a7aed2d70d9d241cddbf18c Author: Pranshu Sharma <pran...@bauherren.ovh> Commit: Pranshu Sharma <pran...@bauherren.ovh>
Lambda case indentation fix --- 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 b437d9aa87..1f130956dc 100644 --- a/haskell-ts-mode.el +++ b/haskell-ts-mode.el @@ -270,7 +270,7 @@ when `haskell-ts-prettify-words' is non-nil.") ((node-is "^infix$") ,parent-first-child 0) ;; Lambda - ((parent-is "^lambda\\(_case\\)?$") standalone-parent 2) + ((parent-is "^lambda$") standalone-parent 2) ((parent-is "^class_declarations$") prev-sibling 0) @@ -347,7 +347,7 @@ when `haskell-ts-prettify-words' is non-nil.") (lambda (_ b _) (treesit-node-start (treesit-node-prev-sibling b))) 0) ((n-p-gp nil "signature" "foreign_import") grand-parent 3) - ((parent-is "^case$") parent 2) + ((parent-is "^\\(lambda_\\)?case$") parent 2) ((node-is "^alternatives$") (lambda (_ b _) (treesit-node-start (treesit-node-child b 0)))