Razen language support for the Zed editor.
- Syntax Highlighting - Full syntax highlighting for all Razen language features
- Code Folding - Fold functions, structs, blocks, and more
- Auto-closing Brackets - Automatic closing of brackets, quotes, and braces
- Comment Support - Single-line (
//) and multi-line (/* */) comments - Smart Indentation - Automatic indentation for code blocks
.rzn(primary).rz.razen
- Declarations:
const,var,fun,type,struct,enum,impl - Control Flow:
if,else,elif,while,for,in,match,return,break,continue - Error Handling:
try,catch,throw - Module System:
mod,use,from,as,pub
- Primitives:
int,float,str,bool,char,any - Collections:
array,map
- F-strings:
f"Hello {name}" - Power operator:
** - Range operators:
..,..= - Update operators:
++,-- - Null coalescing:
??
- Open Zed
- Press
Cmd+Shift+P(Mac) orCtrl+Shift+P(Linux/Windows) - Type "zed: extensions"
- Search for "Razen"
- Click "Install"
Or install from the command line:
zed --install-extension razenTo develop this extension locally:
-
Clone the repository:
git clone https://github.com/BasaiCorp/razen-zed.git cd razen-zed -
Link to Zed extensions directory:
ln -s $(pwd) ~/.config/zed/extensions/razen
-
Reload Zed
This extension uses the tree-sitter-razen grammar for parsing.
Prathmesh Barot - Solo Developer
Contributions are welcome! Please feel free to submit a Pull Request.
MIT License - see LICENSE file for details.