File tree 3 files changed +9
-1
lines changed
3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 5
5
- [ #38 ] : Add support for ` in-ns ` forms in ` clojure-ts-find-ns ` .
6
6
- [ #46 ] : Fix missing ` comment-add ` variable in ` clojure-ts-mode-variables ` mentioned in [ #26 ]
7
7
- Add imenu support for ` deftest ` definitions.
8
+ - Fix semantic indentation of quoted functions
8
9
9
10
## 0.2.2 (2024-02-16)
10
11
Original file line number Diff line number Diff line change @@ -520,6 +520,10 @@ with the markdown_inline grammar."
520
520
" Return non-nil if NODE is a Clojure keyword."
521
521
(string-equal " kwd_lit" (treesit-node-type node)))
522
522
523
+ (defun clojure-ts--quoted-var-node-p (node )
524
+ " Return non-nil if NODE is a Clojure quoted."
525
+ (string-equal " var_quoting_lit" (treesit-node-type node)))
526
+
523
527
(defun clojure-ts--named-node-text (node )
524
528
" Gets the name of a symbol or keyword NODE.
525
529
This does not include the NODE's namespace."
@@ -722,7 +726,8 @@ https://github.com/weavejester/cljfmt/blob/fb26b22f569724b05c93eb2502592dfc2de89
722
726
(not (treesit-node-eq (treesit-node-child parent 1 t ) node))
723
727
(let ((first-child (treesit-node-child parent 0 t )))
724
728
(or (clojure-ts--symbol-node-p first-child)
725
- (clojure-ts--keyword-node-p first-child)))))
729
+ (clojure-ts--keyword-node-p first-child)
730
+ (clojure-ts--quoted-var-node-p first-child)))))
726
731
727
732
(defun clojure-ts--match-expression-in-body (_node parent _bol )
728
733
" Match NODE if it is an expression used in a body argument.
Original file line number Diff line number Diff line change 60
60
(clojure.core/filter even?
61
61
(range 1 10 ))
62
62
63
+ (#'filter even?
64
+ (range 10 ))
63
65
64
66
(filter
65
67
even?
You can’t perform that action at this time.
0 commit comments