bolehlang VS Code Extension
Syntax highlighting for the bolehlang programming language.
Features
- Syntax highlighting for all bolehlang keywords, operators, and built-in functions
- Auto-closing pairs for brackets, braces, parentheses, and strings
- Comment toggling support
- Code folding for blocks
Installation
From source (recommended for development)
Copy or symlink the vscode directory into your VS Code extensions folder:
# macOS / Linux
ln -s "$(pwd)/vscode" ~/.vscode/extensions/bolehlang
# Windows (PowerShell)
New-Item -ItemType SymbolicLink -Path "$env:USERPROFILE\.vscode\extensions\bolehlang" -Target "$(Get-Location)\vscode"
Reload VS Code (Cmd+Shift+P > "Developer: Reload Window")
Open any .boleh file and enjoy syntax highlighting!
Highlighted Elements
| Element |
Examples |
| Variables & constants |
dei, memang dei, tukar |
| Control flow |
is it, or is it, abuden, one by one |
| Functions |
jom, nah |
| Booleans & null |
can, cannot, kosong |
| Error handling |
try see, alamak, confirm need, mampus |
| Print |
eh, walao eh |
| Imports |
tapau |
| Loop keywords |
sampai, dalam, gaodim, no need |
| Logical & comparison |
sama, tak sama, also, if not |
| Built-in functions |
len, apa_ni, masuk, potong_stim, nombor, string, cincai |
| Comments |
// eh: ..., alamak mula ... alamak habis |
| |