From f2f4402dd2ad51d1761393955196c9ba2464ce36 Mon Sep 17 00:00:00 2001 From: Laurence Chen Date: Mon, 1 Dec 2025 09:03:46 +0800 Subject: [PATCH] fix issue #31 --- .clj-kondo/hooks/ornament.clj | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.clj-kondo/hooks/ornament.clj b/.clj-kondo/hooks/ornament.clj index 4927548..a8a9c7e 100644 --- a/.clj-kondo/hooks/ornament.clj +++ b/.clj-kondo/hooks/ornament.clj @@ -28,7 +28,11 @@ (api/reg-finding! {:row (:row (meta fn-tag)) :col (:col (meta fn-tag)) :message "fn-tag must be at least a list or nil" - :type :lambdaisland.ornament/invalid-syntax}))] + :type :lambdaisland.ornament/invalid-syntax})) + def-class-form (api/list-node + (list (api/token-node 'def) + class-name + (api/token-node 'nil)))] (if (api/list-node? fn-tag) (let [[binding-vec & body] (:children fn-tag) new-node (api/list-node @@ -39,4 +43,4 @@ (prn :new-node (api/sexpr new-node)) {:node new-node}) ;; nil node - {:node true}))) + {:node def-class-form})))