Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toplevel defs with metadata are not handled properly #42

Closed
kommen opened this issue Mar 31, 2024 · 2 comments · Fixed by #56
Closed

Toplevel defs with metadata are not handled properly #42

kommen opened this issue Mar 31, 2024 · 2 comments · Fixed by #56

Comments

@kommen
Copy link
Contributor

kommen commented Mar 31, 2024

This is valid Clojure code and is handled correctly in clojure-mode:

^{:a 1}
(def b 2)

Expected behavior

To match the behavior of clojure-mode which is:
-) b can navigated to via imenu
-) (def b 2) properly font locked liked other toplevel defs
-) (def b 2) not indented

Actual behavior

-) b not included in imenu
-) (def b 2) not font locked
-) (def b 2) indented

Steps to reproduce the problem

Put this a clojure-ts-mode buffer:

^{:a 1}
(def b 2)

Environment & Version information

clojure-ts-mode version

clojure-ts-mode (version 0.2.2)

tree-sitter-clojure grammar version

v0.0.12

Emacs version

E.g. 29.3

Operating system

macOS 14.4

@kommen
Copy link
Contributor Author

kommen commented Mar 31, 2024

@kommen
Copy link
Contributor Author

kommen commented Mar 31, 2024

I pushed a WIP branch trying to address this: #43

kommen added a commit to kommen/clojure-ts-mode that referenced this issue Oct 23, 2024
kommen added a commit to kommen/clojure-ts-mode that referenced this issue Oct 23, 2024
bbatsov pushed a commit that referenced this issue Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant