devongovett / tree-sitter-highlight

A syntax highlighter for Node powered by Tree Sitter. Written in Rust.
MIT License
234 stars 6 forks source link

Look into dynamically loading grammars #2

Open devongovett opened 2 years ago

devongovett commented 2 years ago

For the initial release, I took the easiest possible approach, which is simply to compile the languages I needed directly into the module. However, tree sitter supports many more languages. Would be good to look into dynamically loading these at runtime somehow so we can support them all without bloating the binary.

cmoog commented 2 years ago

Are you open to accepting this as a contribution?

devongovett commented 2 years ago

Sure! Do you have an idea of how you'd implement it?