From eafed20bd92d9976eeeb855cf9e3b69c1e89d94e Mon Sep 17 00:00:00 2001 From: Dieter Komendera Date: Mon, 21 Oct 2024 20:42:07 +0200 Subject: [PATCH] Try lint --- clojure-ts-mode.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clojure-ts-mode.el b/clojure-ts-mode.el index f306030..9c2891d 100644 --- a/clojure-ts-mode.el +++ b/clojure-ts-mode.el @@ -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))))) @@ -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