File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -539,10 +539,9 @@ This does not include the NODE's namespace."
539
539
(string-equal expected-symbol-name (clojure-ts--named-node-text node))))
540
540
541
541
(defun clojure-ts--node-child-skip-metadata (node n )
542
- " Return the Nth child of node like treesit-node-child, but skips the optional meta node at pos 0."
543
- (let* ((first-child (treesit-node-child node 0 t ))
544
- (n1 (if (clojure-ts--metadata-node-p first-child) (1+ n) n)))
545
- (treesit-node-child node n1 t )))
542
+ " Return the Nth child of NODE like `treesit-node-child`, skipping the optional metadata node at pos 0 if present."
543
+ (let ((first-child (treesit-node-child node 0 t )))
544
+ (treesit-node-child node (if (clojure-ts--metadata-node-p first-child) (1+ n) n) t )))
546
545
547
546
(defun clojure-ts--symbol-matches-p (symbol-regexp node )
548
547
" Return non-nil if NODE is a symbol that matches SYMBOL-REGEXP."
You can’t perform that action at this time.
0 commit comments