Syntax highlighting and real-time error diagnostics for the Symbol programming language.
Features
- Syntax highlighting — color-coded Symbol code
- Real-time diagnostics — errors appear as you type
- LSP support — extensible language server protocol
Setup
-
Make sure
symbolicompiler is accessible:# Add to PATH or configure in settings export PATH="/path/to/symboli/bin:$PATH" -
Configure the compiler path in VS Code settings:
{ "symbol.compilerPath": "/path/to/symboli" }
Development
Build the extension:
npm install
npm run compile
Debug by pressing F5 in VS Code to launch the Extension Development Host.
How It Works
The LSP server validates .sym files by:
- Running
symboli --ast <file>to catch parse errors - Converting error output to VS Code diagnostics
Errors are displayed as red squiggles on the problematic line.