branch: elpa/haskell-ts-mode commit eacca94b5cd4aa0e28f4b5cb053508dc054fa67f Author: Pranshu Sharma <pranshusharma...@gmail.com> Commit: Pranshu Sharma <pranshusharma...@gmail.com>
Dont indent quasi quote body --- haskell-ts-mode.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/haskell-ts-mode.el b/haskell-ts-mode.el index 3f8c86b153..c524a52c9e 100644 --- a/haskell-ts-mode.el +++ b/haskell-ts-mode.el @@ -106,7 +106,7 @@ (quasiquote (quoter) @font-lock-type-face) (quasiquote (quasiquote_body) @font-lock-preprocessor-face)))) -(defvar haskell-ts-indent-rules +(setq haskell-ts-indent-rules (let ((p-prev-sib (lambda (node parent bol) (let ((n (treesit-node-prev-sibling node))) @@ -131,6 +131,7 @@ ((node-is "^in$") parent 2) ((parent-is "apply") parent -1) + ((parent-is "quasiquote_body") (lambda (a b c) c) 0) ;; Do Hg ((lambda (node parent bol) (let ((n (treesit-node-prev-sibling node)))