ocaml-mlx / mlx

OCaml .mlx syntax dialect which adds JSX syntax expressions
Other
104 stars 2 forks source link

syntax highlighting #5

Open rmmanseau opened 8 months ago

rmmanseau commented 8 months ago

how do you handle syntax highlighting when using this? could a tree sitter grammar be put together?

andreypopp commented 8 months ago

I rely on standard ocaml grammar in vim/neovim for now which works pretty decently for me, but yeah, the proper way is to add a tree sitter grammar, shouldn't be to hard to build on top of the ocaml one.

andreypopp commented 2 months ago

tree sitter grammar is available now https://github.com/ocaml-mlx/tree-sitter-mlx as well as a plugin for neovim https://github.com/ocaml-mlx/ocaml_mlx.nvim

what's missing is a plugin for vscode