TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/ToberlerOhn/hades/llms.txt
Use this file to discover all available pages before exploring further.
hades-language extension brings first-class editor support to Visual Studio Code, giving you syntax highlighting, bracket matching, and automatic comment toggling for every .hds and .hd file you open. It is distributed as a local extension packaged alongside the Hades interpreter, so a one-time install from the source directory is all you need.
What the Extension Provides
Syntax Highlighting
TextMate grammar (
source.hades) colours keywords, types, strings, numbers, operators, and function names using your active VS Code theme.File Association
Both
.hds and .hd files are automatically recognised as the hades language — no manual file-association settings required.Bracket Matching
Pairs
{}, [], and () are tracked for matching, auto-closing, and surrounding-selection support.Line Comments
The
// comment prefix is registered, so the Toggle Line Comment shortcut works out of the box.Highlighted Language Features
The grammar covers the following token categories:| Category | Examples |
|---|---|
| Control keywords | if, else, do, while, for, in, func, return |
| Type keywords | int, float, bool, str, list, nothing |
| String literals | Single-quoted strings with escape sequences |
| Numeric literals | Integer and float literals |
| Operators | +, -, *, /, %, =, >, <, !, &, |, ^ |
| Function calls | Any identifier(...) pattern |
| Line comments | Everything following // to end of line |
Installing the Extension
The extension lives in thehades-language/ directory of the Hades repository. Because it is not yet published to the VS Code Marketplace (version 0.0.1), you install it locally using one of the two methods below.
VS Code engine
^1.125.0 is required. Make sure your editor is up to date before installing.Method 1 — Extension Development Host (Recommended for Contributors)
This launches a sandboxed VS Code window with the extension active and is the fastest way to get started without packaging.Install dependencies
If a
node_modules/ directory is not already present, install the dev dependencies:Launch the Extension Development Host
Press F5 (or go to Run → Start Debugging). A new VS Code window opens with the
Hades Language Support extension loaded.Method 2 — Pack and Install as VSIX
This installs the extension permanently into your VS Code profile.Pack the extension
From inside the This produces a
hades-language/ directory, run:hades-language-0.0.1.vsix file.Install the VSIX
In VS Code, open the Command Palette (Ctrl+Shift+P / Cmd+Shift+P), choose Extensions: Install from VSIX…, and select the generated
.vsix file.File Association
Once installed, VS Code automatically detects.hds and .hd files as the hades language using the contributed language ID hades (aliases: Hades, hades). The language mode indicator in the bottom-right status bar will read Hades.
Extension Details
| Field | Value |
|---|---|
| Extension ID | tobyp.hades-language |
| Display Name | Hades Language Support |
| Version | 0.0.1 |
| Publisher | tobyp |
| VS Code Engine | ^1.125.0 |
| Scope Name | source.hades |
| Grammar file | syntaxes/hades.tmLanguage.json |