tremor-rs / tremor-sublime

Sublime syntax definitions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

** sublime-syntax **

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.

Installation

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

About

Sublime syntax definitions

License:Apache License 2.0