ruuda / rcl

A reasonable configuration language
https://rcl-lang.org
Apache License 2.0
197 stars 8 forks source link

Add a Tree-sitter grammar #47

Closed ruuda closed 7 months ago

ruuda commented 8 months ago

Tree-sitter is a parser generator, it’s parsers can be used by Helix, Neovim, and GitHub Linguist. It would also be nice to have a fault-tolerant parser to include in the wasm module to do syntax highlighting on the demo page.

Example

With some configuration that I should probably save somewhere, Helix is now able to highlight RCL:

Helix highlighting RCL