Skip to content

razen-core/razen-zed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Razen for Zed

Razen language support for the Zed editor.

Features

  • 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

Supported File Extensions

  • .rzn (primary)
  • .rz
  • .razen

Language Features

Keywords

  • 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

Types

  • Primitives: int, float, str, bool, char, any
  • Collections: array, map

Special Features

  • F-strings: f"Hello {name}"
  • Power operator: **
  • Range operators: .., ..=
  • Update operators: ++, --
  • Null coalescing: ??

Installation

  1. Open Zed
  2. Press Cmd+Shift+P (Mac) or Ctrl+Shift+P (Linux/Windows)
  3. Type "zed: extensions"
  4. Search for "Razen"
  5. Click "Install"

Or install from the command line:

zed --install-extension razen

Development

To develop this extension locally:

  1. Clone the repository:

    git clone https://github.com/BasaiCorp/razen-zed.git
    cd razen-zed
  2. Link to Zed extensions directory:

    ln -s $(pwd) ~/.config/zed/extensions/razen
  3. Reload Zed

Tree-sitter Grammar

This extension uses the tree-sitter-razen grammar for parsing.

Author

Prathmesh Barot - Solo Developer

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT License - see LICENSE file for details.

Links

About

Zed extension for the razen lang

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published