zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
49.92k stars 3.06k forks source link

Add `.cljc`, `.edn`, and `.bb` file name extensions to the Clojure list #7845

Closed cap10morgan closed 8 months ago

cap10morgan commented 9 months ago

Check for existing issues

Describe the feature

Follow up from #5292. In addition to .clj and .cljs, Clojure language mode should also be triggered when someone opens a file with .cljc, .edn, and .bb file name extensions.

.cljc is for files that mix code for different Clojure platforms (e.g. JVM Clojure and ClojureScript) using the #? reader macro.

.edn is for extensible data notation files that are essentially non-executable Clojure data structures w/ some extensibility features added on. Because they are the same data structure literals as Clojure itself and the extensibility features are implemented in terms of Clojure reader macro syntax, just activating Clojure language mode should suffice for these.

.bb is for Clojure code that is only intended to be executed by Babashka which is a Clojure scripting runtime. It's still just Clojure code, though, so Clojure language mode should work fine.

If applicable, add mockups / screenshots to help present your vision of the feature

No response

JosephTLyons commented 8 months ago

This is now included in v0.125.0-pre.