ChimeHQ / Chime

An editor for macOS
https://www.chimehq.com
BSD 3-Clause "New" or "Revised" License
300 stars 14 forks source link

Support OCaml #16

Closed mattmassicotte closed 2 months ago

mattmassicotte commented 4 months ago

App-side support shouldn't be too bad, and tree-sitter SPM support is already available:

https://github.com/tree-sitter/tree-sitter-ocaml

mattmassicotte commented 4 months ago

I think step 0 should be to add some documentation around how this done.

mattmassicotte commented 3 months ago

Docs were done a while ago, available here: https://chimehq.github.io/Chime/documentation/chime/addlanguage

mattmassicotte commented 3 months ago

Ok, integrated with support for .ml. I'm not 100% sure how to support .mli. Any ideas @McNight ?

mattmassicotte commented 2 months ago

So I believe the solution here is to have two independent UTIs.

.ml -> org.ocaml.ocaml > public.source-code .mli -> org.ocaml.ocaml-interface > public.source-code