Skip to content

Commit

Permalink
Try lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kommen committed Oct 21, 2024
1 parent d495e11 commit eafed20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clojure-ts-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ See `treesit-simple-indent-rules'."
;; Symbols starting with this are false positives
(rx line-start (or "default" "deflate" "defer"))
first-child))
(not (clojure-ts--match-with-metadata node parent _bol))
(not (clojure-ts--match-with-metadata node))
(clojure-ts--symbol-matches-p
clojure-ts--symbols-with-body-expressions-regexp
first-child)))))
Expand Down Expand Up @@ -822,7 +822,7 @@ forms like deftype, defrecord, reify, proxy, etc."
(clojure-ts--match-fn-docstring parent)
(clojure-ts--match-method-docstring parent))))

(defun clojure-ts--match-with-metadata (node _parent _bol)
(defun clojure-ts--match-with-metadata (node &optional _parent _bol)
"Match NODE when it has metadata."
(let ((prev-sibling (treesit-node-prev-sibling node)))
(and prev-sibling
Expand Down

0 comments on commit eafed20

Please sign in to comment.