Skip to content

Type to search extensions

sBPF Assembly

v0.1.0

Syntax highlighting for Solana sBPF Assembly.

Updated 3 weeks ago
26 downloads 0 stars Repository ↗

sBPF Assembly for Zed

Phase 1 MVP for Solana sBPF Assembly syntax highlighting in Zed.

Features

  • Language name: sBPF Assembly
  • File suffixes: .s, .sbpf
  • Tree-sitter grammar for # comments, labels, instructions, registers, numbers, symbols, strings, directives, and memory operands
  • Zed highlight queries for comments, labels, opcodes, registers, numbers, symbols, and memory operands
  • Bracket and comment configuration

Local development

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

cd tree-sitter-sbpf-asm
npm install
npm run generate
npm test

Install this directory as a Zed dev extension:

zed: install dev extension

Select the local clone of this repository.

Phase 2

Add a small language server for completions and hover docs once syntax highlighting is verified.

ZedExt An unofficial community project. Not affiliated with Zed Industries.

Data from Zed’s extension registry and GitHub · updated