Akkhara (အက္ခရာ) — VS Code Language Support
Syntax highlighting for Akkhara, the Myanmar-syntax programming language, in .akk files.
What it highlights
| Category |
Examples |
| Comments |
# ... |
| Strings + interpolation |
"မင်္ဂလာပါ {name}" |
| Numbers (ASCII + Myanmar digits) |
25, ၂၅, 3.14 |
| Booleans |
True, False, မှန်, မှား |
| Types |
ကိန်း, ကိန်းပြည့်, ဒဿမကိန်း, စာသား, ဘူလ်, စာရင်း, အစု, အုပ်စု, အဘိဓာန်, ဇယား |
| Variable declaration |
သည်, မှာ, ဖြစ်၏ |
| Built-in actions |
ဖော်ပြပါ, မေးပါ, ပြောင်းပါ, တိုးပါ, လျော့ပါ, မြှောက်ပါ, စားပါ |
| Control flow |
အကယ်၍, သို့မဟုတ်, မဟုတ်လျှင်, ဖြစ်လျှင်, မဖြစ်လျှင်, အခြေအနေ, ဖြစ်နေစဉ်, မဖြစ်နေစဉ်, ထဲမှ, တစ်ခုစီ, လုပ်ရန်, လုပ်ပါ |
| Function / Class |
လုပ်ငန်း, နည်းလမ်း, တန်ဖိုး, အသစ် |
| Operators (word-form) |
နှင့်, သို့, ကို, ဖြင့်, အတွက်, ပြီး |
| Comparisons / arithmetic |
== != <= >= < >, + - * / % |
| Statement terminator |
။ |
| Brackets |
[] () {} |
An example file is at examples/sample.akk — open it after installing to see the highlighting.
Install (from this folder, unpacked)
- Copy this whole folder into your VS Code extensions directory:
- Windows:
%USERPROFILE%\.vscode\extensions\akkhara-language-0.1.0
- macOS/Linux:
~/.vscode/extensions/akkhara-language-0.1.0
- Restart VS Code (or "Reload Window" from the command palette).
- Open any
.akk file — it should now be highlighted automatically.
Install (as a packaged .vsix)
If you have Node.js installed, you can package this into a single installable file:
npm install -g @vscode/vsce
cd akkhara-language
vsce package
This produces akkhara-language-0.1.0.vsix. Install it with:
code --install-extension akkhara-language-0.1.0.vsix
or via VS Code UI: Extensions panel → ... menu → Install from VSIX...
Notes
- The lexer treats a few grammatical particles (
ကို, သည်, သို့, အတွက်, etc.) as
separable even when fused onto a preceding word with no space. The highlighter matches
these as whole-word keywords, so if you write compact fused text your identifiers
may still get partially colored — this mirrors the interpreter's own tokenizer bug/feature.
သို့ is reused for both "or" (logic) and "to" (type conversion) — both are highlighted
the same way since Akkhara itself doesn't distinguish them lexically.
- This is a grammar-only extension (no language server), so it doesn't do error
checking, autocomplete, or go-to-definition — just fast, accurate coloring.
| |