The official Sublime Text plugin for ReScript.
This is a developer preview, so the installation is manual for now.
- Clone repo locally.
- Cmd-shift-p -> Preferences: Browse Packages. Get the path where ST stores packages (e.g.
~/Library/Application Support/Sublime Text 3/Packages
). - In the terminal,
ln -s /path/to/your/cloned/repo pathOfSTPackages
- Highlighting
- Soon: formatting
- Cmd-shift-p -> UI: Select Color Scheme. Use Mariana for best effects. Or try another one and tell us. Mariana colors tokens distinctively (and still pleasantly) enough for module and variant to be visually distinct despite both being capitalized. Gotta have accurate highlighting!
Thanks for your interest in contributing!
Docs at https://www.sublimetext.com/docs/3/syntax.html and https://www.sublimetext.com/docs/3/scope_naming.html
Tldr (documented in first link):
- Change
ReScript.sublime-syntax
- Open
syntax_test.res
- Cmd-shift-p -> Build With: Syntax Tests