Skip to content

Commit 7792ef2

Browse files
committed
Tweak code style
1 parent 606740a commit 7792ef2

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

clojure-ts-mode.el

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -614,9 +614,15 @@ This does not include the NODE's namespace."
614614
(string-equal expected-symbol-name (clojure-ts--named-node-text node))))
615615

616616
(defun clojure-ts--node-child-skip-metadata (node n)
617-
"Return the Nth child of NODE like `treesit-node-child`, skipping the optional metadata node at pos 0 if present."
617+
"Return the Nth child of NODE like `treesit-node-child', sans metadata.
618+
Skip the optional metadata node at pos 0 if present."
618619
(let ((first-child (treesit-node-child node 0 t)))
619-
(treesit-node-child node (if (clojure-ts--metadata-node-p first-child) (1+ n) n) t)))
620+
(treesit-node-child
621+
node
622+
(if (clojure-ts--metadata-node-p first-child)
623+
(1+ n)
624+
n)
625+
t)))
620626

621627
(defun clojure-ts--node-with-metadata-parent (node)
622628
"Return parent for NODE only if NODE has metadata, otherwise return nil."

0 commit comments

Comments
 (0)