Skip to content

Metadata on deftest prevents imenu from seeing it #120

@piranha

Description

@piranha

If I have something like that in my source code:

(deftest ^:parallel database-delete-test
  (testing "whatever"))

it's not picked up by imenu since (I think!) clojure-ts--definition-node-match-p wants a symbol to come right the deftest. If I remove ^:parallel everything works.

clojure-ts-mode version

clojure-ts-mode 0.6.0-snapshot (package: 20250815.441)

tree-sitter-clojure grammar version

I use treesit-langs 0.12.308

Emacs version

31.0.50

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions