Language support for the Kai programming language: syntax highlighting (TextMate grammar matching the tree-sitter-kai grammar), language configuration, and file icons.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
A VS Code extension for the Kai programming language — a complete language extension whose TextMate grammar mirrors the tree-sitter-kai grammar (grammar.js) and its highlight queries:
Contribution
File
What it does
languages
package.json
Registers the kai language: .kai extension, aliases, and a language icon so files get the Kai icon automatically
npm install -g @vscode/vsce
# run from this folder:
vsce package
# → kai-0.1.0.vsix
Then install via the Extensions view → ... → Install from VSIX....
Option C — Development (F5)
Open this folder in VS Code and press F5 to launch an Extension Development Host.
What to expect
.kai files open as the Kai language with syntax highlighting.
The Kai file icon shows automatically (via languages[].icon).
The dedicated icon theme is optional — select Kai File Icons for workbench.iconTheme, or add "workbench.iconTheme": "kai-icons" to settings.json.
Note: file icon themes take precedence over languages[].icon, so if the active theme defines its own .kai icon, it wins.
Known outstanding work
Language configuration is minimal; add more autoClosingPairs/surroundingPairs as the language stabilizes.
Semantic highlighting — a future LSP/resolver can feed semantic tokens on top of the TextMate layer.
This TextMate grammar is hand-written to match the tree-sitter-kai grammar; keep it in sync whenever grammar.js changes (validate with tree-sitter test upstream).