Skip to content

cleave-lang/vscode-cleave

Repository files navigation

Cleave for VS Code

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.

What this extension does

  • Highlights .cv files: 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 {, (, [

What this extension does not do (yet)

  • 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.

Companion grammars

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.

Local development

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 package

License

Apache-2.0. See LICENSE.

About

VS Code extension for the Cleave programming language (.cv files)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors