Tooling
A formatter, a language server, and an extension for two editors.
Formatting
scarlet fmt formats in place. Source indentation is tabs. Run
scarlet fmt --check . in CI; it exits 1 when a file is unformatted.
Editors
-
scarlet lspserves diagnostics, completions, and formatting to any LSP editor. Diagnostics print aspath:line:col: message. -
Visual Studio Code: the Scarlet extension in
editors/vscodeprovides highlighting, diagnostics, and formatting. It runs thescarletbinary from your path; thescarlet.binaryPathsetting overrides it. -
Zed: the extension in
editors/zedregisters the language and wiresscarlet lsp. Install it as a dev extension.