[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/clojure-ts-mode 4578449356 12/71: indent testing, end_of_d
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/clojure-ts-mode 4578449356 12/71: indent testing, end_of_defun bug test (bug is in treesitter) |
Date: |
Fri, 25 Aug 2023 03:59:26 -0400 (EDT) |
branch: elpa/clojure-ts-mode
commit 457844935617566767a184d692c49fe0c6f30b81
Author: dannyfreeman <danny@dfreeman.email>
Commit: dannyfreeman <danny@dfreeman.email>
indent testing, end_of_defun bug test (bug is in treesitter)
Indent doesn't work in all scenarios like indenting in the middle of a
form with existing line breaks
---
clojure-ts-mode.el | 20 ++++++++++----------
test_end_of_defun.clj | 5 +++++
2 files changed, 15 insertions(+), 10 deletions(-)
diff --git a/clojure-ts-mode.el b/clojure-ts-mode.el
index 1e9e0e1e19..35a2d052ca 100644
--- a/clojure-ts-mode.el
+++ b/clojure-ts-mode.el
@@ -332,16 +332,16 @@
;; (defvar clojure-ts-mode--indent-rules
;; '((clojure
-;; ((parent-is "source")
-;; parent-bol 0)
-
-;; ((query ((list_lit :anchor (sym_lit))))
-;; parent-bol 2)
-
-;; ((or (parent-is "list_lit")
-;; (parent-is "vec_lit")
-;; (parent-is "map_lit"))
-;; parent-bol 1))))
+;; ((parent-is "source") parent-bol 0)
+;; ((parent-is "set_lit") parent-bol 2)
+;; ((parent-is "vec_lit") parent-bol 1)
+;; ((parent-is "map_lit") parent-bol 1)
+;; ;; Lists beginning with a symbol indent 2 spaces (usally a function
call)
+;; ((query "(list_lit . (sym_lit) _* @indent)") parent-bol 2)
+;; ;; All other lists indent 1 space
+;; ((parent-is "list_lit") parent-bol 1))))
+ ;; Need to deal with deref, tagged literals.
+
(defvar clojure-ts-mode-map
(let ((map (make-sparse-keymap)))
diff --git a/test_end_of_defun.clj b/test_end_of_defun.clj
new file mode 100644
index 0000000000..a270163c1e
--- /dev/null
+++ b/test_end_of_defun.clj
@@ -0,0 +1,5 @@
+(:a)
+
+[:b]
+
+{:k a}
- [nongnu] elpa/clojure-ts-mode 6ddcd2cc0f 39/71: Further documentation on syntax trees and nodes, (continued)
- [nongnu] elpa/clojure-ts-mode 6ddcd2cc0f 39/71: Further documentation on syntax trees and nodes, ELPA Syncer, 2023/08/25
- [nongnu] elpa/clojure-ts-mode 5aa548a8a5 41/71: Remove outdated comment, ELPA Syncer, 2023/08/25
- [nongnu] elpa/clojure-ts-mode fefab3540c 58/71: Explicitly declare the syntax-table used by clojure-ts-mode, ELPA Syncer, 2023/08/25
- [nongnu] elpa/clojure-ts-mode d8207ac7c3 34/71: Update the names of a couple of identifiers, ELPA Syncer, 2023/08/25
- [nongnu] elpa/clojure-ts-mode 2d78f6be4f 59/71: Remove redundant docstring info from major mode, ELPA Syncer, 2023/08/25
- [nongnu] elpa/clojure-ts-mode 061d1b3e23 50/71: Add melpa badge to readme, ELPA Syncer, 2023/08/25
- [nongnu] elpa/clojure-ts-mode ae8f3e3805 30/71: Shorten clojure-ts-mode-* to clojure-ts-* for non-public functions, ELPA Syncer, 2023/08/25
- [nongnu] elpa/clojure-ts-mode b2380557c9 51/71: Add missing markdown reference, ELPA Syncer, 2023/08/25
- [nongnu] elpa/clojure-ts-mode 3e2a1b8ec9 03/71: More readme badge and link fixes, ELPA Syncer, 2023/08/25
- [nongnu] elpa/clojure-ts-mode 9640b445eb 33/71: Add a badge for the lint workflow, ELPA Syncer, 2023/08/25
- [nongnu] elpa/clojure-ts-mode 4578449356 12/71: indent testing, end_of_defun bug test (bug is in treesitter),
ELPA Syncer <=
- [nongnu] elpa/clojure-ts-mode bd5b2b6fa0 16/71: Include new instructions for installing with package-vc-install, ELPA Syncer, 2023/08/25
- [nongnu] elpa/clojure-ts-mode 019298655e 54/71: Version 0.1.1, ELPA Syncer, 2023/08/25
- [nongnu] elpa/clojure-ts-mode 00a92afac3 56/71: Merge pull request #14 from jasonjckn/main, ELPA Syncer, 2023/08/25
- [nongnu] elpa/clojure-ts-mode b73f2326e8 48/71: Fix typo and incorrect use of "abstract" syntax tree., ELPA Syncer, 2023/08/25
- [nongnu] elpa/clojure-ts-mode f3697d0cb2 09/71: Tweak the README's formatting a bit, ELPA Syncer, 2023/08/25
- [nongnu] elpa/clojure-ts-mode 9b29677722 36/71: Require library used for lm-version function, ELPA Syncer, 2023/08/25
- [nongnu] elpa/clojure-ts-mode 27c5cc13d7 20/71: Remove debugging message from defun-type-regexp, ELPA Syncer, 2023/08/25
- [nongnu] elpa/clojure-ts-mode 4eb602cc8b 01/71: Initial commit, ELPA Syncer, 2023/08/25
- [nongnu] elpa/clojure-ts-mode c3631f6c17 15/71: Add breaking change warning, ELPA Syncer, 2023/08/25
- [nongnu] elpa/clojure-ts-mode 859b0b13a7 46/71: Fix what I think is a typo, ELPA Syncer, 2023/08/25