Skip to content

zbrlang/zbr-extensions

Repository files navigation

ZBR Extensions

The official collection of editor and tool extensions for ZBR, a scripting language for Discord bots.

Overview

ZBR is a scripting language for Discord bots powered by a high-performance Rust runtime engine.
You write commands as plain .zbr files using ZBR functions, no boilerplate, no event handlers, no framework knowledge required.

This repository provides the necessary tools for developers to write ZBR commands with full editor support, including syntax highlighting, snippets, and smart completions.

Supported Platforms

IDEs and Text Editors

  • VS Code: Official VS Code extension providing syntax highlighting and 400+ snippets.
  • Zed: Official Zed extension powered by a Tree-sitter grammar.
  • Neovim: Official Neovim extension powered by a Tree-sitter grammar.
  • Helix: Official Helix extension powered by a Tree-sitter grammar.
  • Sublime Text: Official Sublime Text extension providing syntax highlighting and 400+ completions.
  • JetBrains (IntelliJ): Official JetBrains IDE extension providing syntax highlighting and 400+ live templates.
  • Vim: Official Vim syntax highlighting and filetype detection.
  • Emacs: Official zbr-mode major mode for Emacs.
  • Micro: Official Micro editor syntax highlighting.
  • Kate: Official Kate/KTextEditor syntax highlighting.

Web and Documentation

  • highlight.js: Official highlight.js extension for web syntax highlighting.
  • Prism.js: Official Prism.js language definition for web syntax highlighting.
  • Monaco: Official Monaco Editor language definition.
  • Tree-sitter WASM: WebAssembly build of the ZBR Tree-sitter parser.

CLI and Build Tools

  • bat: Official bat extension for terminal syntax highlighting.
  • Pygments: Official Pygments lexer for Python-based highlighting.
  • Rouge: Official Rouge lexer for Ruby-based highlighting.
  • Chroma: Official Chroma lexer for Go-based highlighting.

Installation

See the README in each extension folder for installation instructions:

Project Structure

  • vscode/: VS Code extension, TextMate grammar, snippets, language config.
  • zed/: Zed extension, Tree-sitter highlights, snippets, language config.
  • neovim/: Neovim extension, Tree-sitter queries, snippets, filetype config.
  • helix/: Helix extension, Tree-sitter queries, snippets, language config.
  • sublime/: Sublime Text extension, Sublime syntax, completions, language config.
  • bat/: bat extension, Sublime syntax for terminal highlighting.
  • intellij/: JetBrains IDE extension, TextMate grammar, live templates.
  • vim/: Vim syntax and filetype detection.
  • emacs/: Emacs major mode.
  • micro/: Micro syntax definition.
  • kate/: Kate syntax definition.
  • highlightjs/: highlight.js language definition.
  • prism/: Prism.js language definition.
  • monaco/: Monaco Editor language definition.
  • pygments/: Pygments lexer.
  • rouge/: Rouge lexer.
  • chroma/: Chroma lexer.
  • tree-sitter/: Tree-sitter grammar source for ZBR.
  • tree-sitter-wasm/: Tree-sitter WASM build for web.

License

All Rights Reserved, see LICENSE.

About

Extensions for syntax highlighting and editor support in every environment for ZBR.

Topics

Resources

License

Stars

11 stars

Watchers

0 watching

Forks

Contributors