Algo-C Syntax Highlighting for VS Code
Syntax highlighting support for the Algo-C language used in this project.
Features
- Highlights Algo-C keywords from
algoc.l
- Highlights
// line comments
- Highlights string and numeric literals
- Highlights operators and punctuation
- Supports
.algoc files (and .al as currently configured)
Install Locally
- Install dependencies for packaging:
- Node.js (LTS)
npm install -g @vscode/vsce
- Package the extension from this folder:
- Install the generated
.vsix:
code --install-extension algoc-syntax-0.1.0.vsix
Publish to Marketplace
- Create a publisher at Visual Studio Marketplace.
- Create an Azure DevOps PAT with Marketplace publish permissions.
- Login:
- Publish:
vsce publish
- or bump + publish:
vsce publish patch
Language Details
The grammar is defined in:
syntaxes/algoc.tmLanguage.json
language-configuration.json
Token source of truth is your lexer:
Keep keyword/operator patterns in the TextMate grammar synchronized with lexer changes.
License
GPL-3.0-only. See LICENSE.
| |