
Syntax highlighting and linting for SpASM - the multimedia/system programming language for audio, video, LLM and system programming.
📦 Installation
From VS Code Marketplace
- Open VS Code
- Search "SpASM Language Support" in the Extensions view
- Click Install
From VSIX file
- Download
spasm-vscode-1.0.0.vsix from the releases
- In VS Code: Extensions →
... (ellipsis) → Install from VSIX...
- Select the downloaded
.vsix file
🚀 Features
- ✅ Syntax highlighting for
.spasm files
- ✅ Real-time linting with error detection
- ✅ Dialect conflict detection (interpreter vs AOT)
- ✅ Omninum warnings (not supported in AOT compiler)
- ✅ Code snippets for common SpASM constructs
- ✅ Support for both dialects of SpASM
💻 Usage
The extension activates automatically when you open a .spasm file.
Available Commands
| Shortcut |
Command |
Description |
F8 |
SpASM: Check Syntax |
Check current file syntax |
Ctrl+Shift+P |
"SpASM: Check Syntax" |
Same via command palette |
Settings
{
"spasm-vscode.enableLinting": true,
"spasm-vscode.checkOmninumAOT": true,
"spasm-vscode.showDialectHints": true
}
📝 Syntax
Interpreter Dialect
const PI = 3.14;
var counter = 0;
func factorial(n) {
if (n <= 1) { return 1; }
return n * factorial(n - 1);
}
print("Hello");
print_int(factorial(5));
end;
AOT Dialect (Compiled)
programa "mi_programa"
func doble(x) {
return x * 2;
}
main {
let total = 0;
assign total = doble(21);
print_int(total);
}
🔍 Error Detection
The extension shows warnings for:
- Dialect conflicts: Having
programa and end; in the same file
- Omninum in AOT: Constants like
PI, E, PHI, TAU don't compile in AOT mode
- Incomplete structures: Possible missing
; or braces
📁 Project Structure
spasm-vscode/
├── package.json # Extension manifest
├── README.md # This file
├── LICENSE # MIT License
├── CHANGELOG.md # Changelog
├── language-configuration.json # Language settings
├── syntax/
│ └── spasm.tmLanguage.json # TextMate grammar
├── snippets/
│ └── spasm.code-snippets # Code snippets
├── icons/
│ ├── icon.svg # Vector icon
│ └── icon.png # PNG icon (128x128)
├── dist/
│ └── extension.js # Extension code
└── examples/
├── test.spasm # AOT example
└── test_interpreter.spasm # Interpreter example
📋 Changelog
[1.0.0] - 2026-11-24
- Initial release
- Syntax highlighting for SpASM language (both interpreter and AOT dialects)
- Real-time linting with error detection
- Detection of dialect conflicts (interpreter vs AOT)
- Warnings for omninum usage in AOT mode
- Code snippets for common SpASM constructs
- Support for string escapes, comments, and blocks
- Keyword highlighting for all SpASM builtins
- Language configuration for brackets and comments
🏷️ Snippets Included
| Prefix |
Description |
prog |
Programa AOT básico |
progi |
Programa intérprete |
ifsp |
If statement |
ifelse |
If-else statement |
whilesp |
While loop |
forsp |
For loop |
func |
Function definition |
select |
Select/case structure |
println |
Print statement |
spawn |
Spawn thread |
buffer |
Create buffer |
reslife |
Resource lifecycle |
omni |
Omninum constants |
channel |
Channels communication |
atomic |
Atomic variable |
📚 Credits
- Language SpASM: NuToys Audio / SpAMS-Oficial
- Original Extension: Martin Alejandro Oviedo
- Maintained by: Asistente IA (OpenCode) alias El teclas :P
- Extension: Part of the SpASM ecosystem
- Reference:
F:\SpAMS-Oficial\SPASM_QUICKREF.md
📜 License
MIT License - Free for use in the SpASM ecosystem