Marrow Language Support
Official Visual Studio Code extension for the Marrow programming language.
✨ Features
- 🎨 Rich Syntax Highlighting: Powered by a custom TextMate grammar covering keywords (
fn, struct, ret, cast), types (i64, f64, rawptr), decorators (@), strings, numbers, and comments.
- 📄 Dual Extension Support: Native support for both
.mrw and .marrow files.
- 💬 Smart Commenting: Toggle line comments (
//) and block comments (/* */) using native shortcuts.
- 🔒 Auto-Closing Pairs: Automatic pair completion for
{ }, [ ], ( ), " ", and ' '.
💻 Code Preview
@inline
fn factorial(n: i64) -> i64 {
// Calculate factorial recursively
if (n <= 1) {
ret 1;
}
ret n * factorial(n - 1);
}
struct Point {
x: f64,
y: f64,
}
fn main() -> i32 {
const p = Point { x: 10.5, y: 20.0 };
ret 0;
}
⌨️ Keyboard Shortcuts
| Feature |
Windows / Linux |
macOS |
| Toggle Line Comment |
|
Ctrl + /|Cmd + /Toggle Block Comment |Shift + Alt + A|Shift + Option + AInspect Tokens & Scopes |Ctrl + Shift + P→ Inspect Editor Tokens |Cmd + Shift + P` → Inspect Editor Tokens |
🚀 Installation
From the VS Code Marketplace
- Open VS Code.
- Press
Ctrl + Shift + X (or Cmd + Shift + X on macOS).
- Search for Marrow Language Support.
- Click Install.
Manual Installation (.vsix)
If you built the extension locally using vsce package:
code --install-extension marrow-vscode-0.1.0.vsix
| |