RUDRA for Visual Studio Code
Support for the RUDRA programming language (.rux) by RAKSHANEX TECHNOLOGIES.
This extension contains no JavaScript. It is made only of declarative contributions: a grammar, snippets, language configuration, icons and a problem matcher. Building, running and error reporting are done by the rudra driver, which is written in RUDRA.
What it provides
- Language and highlighting:
.rux files are recognised as RUDRA, with the phoenix file icon. The TextMate grammar matches what the self-hosted compiler accepts.
- Snippets: for
main, functions, let, if/else, while, for ranges and lists, structs, enums with match, and import. Every snippet compiles with ruxc.
- Editing:
// comment toggling, bracket pairs, and indentation after {.
- Problems panel: the
$rudra problem matcher reads file:line:column: error: message lines printed by rudra build, rudra run and rudra check.
Set up build and run
- Install RUDRA. The release puts
rudra and ruxc on your PATH.
- In your project folder, run:
rudra vscode-init
This writes .vscode/tasks.json with three tasks: RUDRA: build (the default build task, Ctrl+Shift+B), RUDRA: run and RUDRA: check. All three use the $rudra problem matcher.
Not available
These features need a JavaScript language client inside VS Code, so this extension does not have them:
- live diagnostics while typing
- hover
- go to definition
- completion based on your code
- rename
- format document
The RUDRA language server (lsp/serve.rux) supports these features in editors that have a built-in LSP client, such as Neovim, Helix and Zed.
Install or update
code --install-extension rudra-lang-1.2.3.vsix --force
The package is built from source with editors/vscode/tools/package.rux, which is also written in RUDRA.