branch: elpa/haskell-ts-mode commit dccba09b18fd81bb16db01afa3cdf0d172a54fbc Author: Pranshu Sharma <pranshusharma...@gmail.com> Commit: Pranshu Sharma <pranshusharma...@gmail.com>
More fixes --- haskell-ts-mode.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/haskell-ts-mode.el b/haskell-ts-mode.el index 60be2482b0..3f8c86b153 100644 --- a/haskell-ts-mode.el +++ b/haskell-ts-mode.el @@ -48,7 +48,7 @@ '(("\\" . "λ") ("/=" . "≠"))) -(setq haskell-ts-font-lock +(defvar haskell-ts-font-lock (treesit-font-lock-rules :language 'haskell :feature 'parens @@ -106,7 +106,7 @@ (quasiquote (quoter) @font-lock-type-face) (quasiquote (quasiquote_body) @font-lock-preprocessor-face)))) -(setq haskell-ts-indent-rules +(defvar haskell-ts-indent-rules (let ((p-prev-sib (lambda (node parent bol) (let ((n (treesit-node-prev-sibling node))) @@ -197,7 +197,7 @@ )))) ;; Copied from haskell-tng-mode -(setq haskell-ts-mode-syntax-table +(defvar haskell-ts-mode-syntax-table (let ((table (make-syntax-table))) (map-char-table (lambda (k v)