Syntax highlighting and language configuration for the Cleave programming language.
Cleave is a programming language for building blockchains from scratch. See cleave-lang/cleave for the compiler, language reference, and standard library protocols.
- Highlights
.cvfiles: keywords, types, function names, comments, strings, numeric literals, operators - Toggles line and block comments with the usual shortcut
- Auto-closes brackets, quotes, and comment blocks
- Indents on
{,(,[
- No language server. There is no
go to definition,find references, or inline diagnostics. Those land once the compiler exposes a stable type-check API. - No code formatter. Cleave does not yet specify an official formatting style.
- cleave-lang/tree-sitter-cleave for Helix, Neovim, Zed, and any other tree-sitter consumer.
The TextMate grammar in this extension and the tree-sitter grammar mirror the same surface (spec/grammar.ebnf in the main repo). They are kept in lockstep manually; the example corpus in cleave-lang/cleave/examples/ is the shared smoke-test surface.
git clone https://github.com/cleave-lang/vscode-cleave
cd vscode-cleave
code .Press F5 in VS Code to launch a new window with the extension loaded. Open a .cv file (any from cleave-lang/cleave/examples/) and confirm highlighting and comment toggling.
To build a .vsix locally:
npm install
npm run packageApache-2.0. See LICENSE.