The bat
cat replacement uses sublime-syntax files for highlighting.
This project enables highlighting for tremor when using bat through a
minimal sublime IDE support.
Create a local syntax directory for the bat
tool, if needed
$ mkdir -p $(bat --config-dir)/syntaxes
$ cd $(bat --config-dir)/syntaxes
Sparse download the latest ( main branch ) syntax and save into your local bat syntax directory
$ wget -O tremor.sublime-syntax Tremor.sublime-syntax https://raw.githubusercontent.com/tremor-rs/tremor-sublime/main/Tremor.sublime-syntax
Update your bat syntax cache
$ bat cache --build
Verify bat now understands tremor syntax
bat --list-languages | rg tremor
TREMOR:tremor,trickle,troy,json
You should now have syntax highlighting via bat for the tremor DSLs
bat /path/to/tremor-runtime/**/**/*.tremor