[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/haskell-ts-mode c49a063e9a 61/61: Fixed defcusotm
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/haskell-ts-mode c49a063e9a 61/61: Fixed defcusotm |
Date: |
Wed, 4 Sep 2024 04:00:33 -0400 (EDT) |
branch: elpa/haskell-ts-mode
commit c49a063e9acd41ae3b615b3c325918c38a4be17e
Author: pranshu <pranshusharma366@gmail.com>
Commit: pranshu <pranshusharma366@gmail.com>
Fixed defcusotm
Now no compile warnings
---
haskell-ts-mode.el | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/haskell-ts-mode.el b/haskell-ts-mode.el
index 463e17f3a3..c0cdafd5e8 100644
--- a/haskell-ts-mode.el
+++ b/haskell-ts-mode.el
@@ -41,7 +41,8 @@
(declare-function treesit-search-subtree "treesit.c")
(defgroup haskell-ts-mode nil
- "Group that contains haskell-ts-mode variables")
+ "Group that contains haskell-ts-mode variables"
+ :group 'langs)
(defvar haskell-ts-font-lock-feature-list
'((comment str pragma parens)
@@ -51,11 +52,13 @@
(defcustom haskell-ts-use-indent t
"Set to non-nil to use the indentation provided by haskell-ts-mode"
- :group 'haskell-ts-mode)
+ :group 'haskell-ts-mode
+ :type 'bool)
(defcustom haskell-ts-font-lock-level 4
"Level of font lock, 1 for minimum highlghting and 4 for maximum."
- :group 'haskell-ts-mode)
+ :group 'haskell-ts-mode
+ :type 'integer)
(defvar haskell-ts-prettify-symbols-alits
'(("\\" . "λ")
@@ -133,7 +136,7 @@
`(["(" ")" "[" "]"] @font-lock-operator-face
(infix operator: (_) @font-lock-operator-face))))
-(defvar haskell-ts-indent-rules
+(setq haskell-ts-indent-rules
(let ((p-prev-sib
(lambda (node _ _)
(let ((n (treesit-node-prev-sibling node)))
@@ -141,7 +144,7 @@
(setq n (treesit-node-prev-sibling n)))
(treesit-node-start n)))))
`((haskell
- ((node-is "comment") column-0 0)
+ ((node-is "comment") prev-sibling 0)
((node-is "cpp") column-0 0)
((parent-is "comment") column-0 0)
((parent-is "imports") column-0 0)
- [nongnu] elpa/haskell-ts-mode 9f450166d8 39/61: better docu, (continued)
- [nongnu] elpa/haskell-ts-mode 9f450166d8 39/61: better docu, ELPA Syncer, 2024/09/04
- [nongnu] elpa/haskell-ts-mode 02f280400c 34/61: Added eglot supprt, ELPA Syncer, 2024/09/04
- [nongnu] elpa/haskell-ts-mode 59c4c2a5a6 40/61: pattern matching docu, ELPA Syncer, 2024/09/04
- [nongnu] elpa/haskell-ts-mode 58d158bef4 45/61: More linting, ELPA Syncer, 2024/09/04
- [nongnu] elpa/haskell-ts-mode 998fc309bd 50/61: General code changes, ELPA Syncer, 2024/09/04
- [nongnu] elpa/haskell-ts-mode 834f15a29d 42/61: temp, ELPA Syncer, 2024/09/04
- [nongnu] elpa/haskell-ts-mode 4cf9f99d93 51/61: More changes, ELPA Syncer, 2024/09/04
- [nongnu] elpa/haskell-ts-mode dd16b23b60 56/61: Fixed comment problems, ELPA Syncer, 2024/09/04
- [nongnu] elpa/haskell-ts-mode 9566f23699 60/61: new indent funciton, ELPA Syncer, 2024/09/04
- [nongnu] elpa/haskell-ts-mode c2d4c88738 57/61: run haskell changes, ELPA Syncer, 2024/09/04
- [nongnu] elpa/haskell-ts-mode c49a063e9a 61/61: Fixed defcusotm,
ELPA Syncer <=
- [nongnu] elpa/haskell-ts-mode 44d5bdb92f 09/61: added intent docu to readme, ELPA Syncer, 2024/09/04
- [nongnu] elpa/haskell-ts-mode 4886b37b9a 27/61: Fix comment problem, ELPA Syncer, 2024/09/04
- [nongnu] elpa/haskell-ts-mode 5e58b16de5 08/61: Added indentation, ELPA Syncer, 2024/09/04
- [nongnu] elpa/haskell-ts-mode d7554fc2ee 20/61: Major update to font lock, ELPA Syncer, 2024/09/04
- [nongnu] elpa/haskell-ts-mode d9afd84e46 47/61: Linting fixes, ELPA Syncer, 2024/09/04
- [nongnu] elpa/haskell-ts-mode bd85e76757 54/61: Fixed commint mode, as eariler ones did not work, ELPA Syncer, 2024/09/04
- [nongnu] elpa/haskell-ts-mode baf2c373ca 38/61: f, ELPA Syncer, 2024/09/04
- [nongnu] elpa/haskell-ts-mode 4b14396789 37/61: Fixed ge and le sign in prettify sym mode and ss, ELPA Syncer, 2024/09/04
- [nongnu] elpa/haskell-ts-mode 994edb715d 22/61: mv filed, ELPA Syncer, 2024/09/04
- [nongnu] elpa/haskell-ts-mode 15c68f9296 23/61: README changed, ELPA Syncer, 2024/09/04