Syntax highlighting for Tolk smart contracts in Zed.
- Language name:
Tolk - File suffixes:
.tolk - Tree-sitter grammar for comments, declarations, keywords, types, literals, strings, calls, operators, and blocks
- Zed highlight queries and bracket/comment configuration
Generate the Tree-sitter parser sources before installing the extension:
cd tree-sitter-tolk
npm install
npm run generate
npm test
npm run build-wasmCopy the generated WASM artifact to grammars/tolk.wasm before packaging the extension. tree-sitter build --wasm requires either emcc or a running Docker daemon.
Install this directory as a Zed dev extension:
zed: install dev extensionSelect the local clone of this repository.
This is a tolerant highlighter grammar. It is intentionally optimized for useful editor highlighting before full compiler-level syntax fidelity.