Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tolk for Zed

Syntax highlighting for Tolk smart contracts in Zed.

Features

  • 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

Local development

Generate the Tree-sitter parser sources before installing the extension:

cd tree-sitter-tolk
npm install
npm run generate
npm test
npm run build-wasm

Copy 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 extension

Select the local clone of this repository.

Scope

This is a tolerant highlighter grammar. It is intentionally optimized for useful editor highlighting before full compiler-level syntax fidelity.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages