c65ab834f5e63b3c8740a27ff9592be7336c3d6e
EBNF for Zed
A Zed extension that provides comprehensive language support for Extended Backus-Naur Form (EBNF).
Features
- Syntax Highlighting: Vibrant and accurate highlighting for EBNF rules, strings, integers, and special sequences.
- Bracket Matching: Support for rainbow brackets and active bracket highlighting for standard brackets
(),{},[], as well as EBNF-specific sequences like(/ /)and(: :). - Auto-Closing & Indentation: Smart bracket auto-closing and indentation behaviors when writing rules.
- Outline Panel Support: Quickly navigate large grammar files using Zed's Outline panel (
cmd-shift-Oorctrl-shift-O).
Installation
From the Zed Extension Registry (Coming Soon)
- Open Zed.
- Open the Command Palette (
cmd-shift-p/ctrl-shift-p). - Search for
zed: extensions. - Search for EBNF and click Install.
Local Development / Manual Installation
If you want to install this extension manually or tweak it:
-
Clone this repository:
git clone [https://git.hadeler.me/jooris/zed-ebnf.git](https://git.hadeler.me/jooris/zed-ebnf.git) -
Open Zed.
-
Open the Command Palette (
cmd-shift-p/ctrl-shift-p) and search forzed: extensions. -
Click the Install Dev Extension button.
-
Select the cloned
zed-ebnfdirectory.
Example EBNF
Once installed, .ebnf files will automatically be highlighted:
(* A simple EBNF grammar *)
digit = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" ;
number = digit , { digit } ;
Description
Languages
Scheme
100%