Language support for BidhuScript, powered directly by its tree-sitter grammar.
Features
- Syntax highlighting for
.bidhufiles - Baseline coloring (keywords, strings, numbers, operators) via a TextMate grammar
- AST-accurate coloring (variables, types, functions, methods, parameters, properties)
via a semantic token provider built on the real tree-sitter parser and
highlights.scm - Bracket matching / auto-closing for
(),[],{}, and quotes
Known limitations
- BidhuScript's grammar currently has no comment syntax, so there's no comment
toggling command yet — add one to
language-configuration.jsononce the grammar supports it.
Development
npm install
npm run compile
Press F5 in VS Code (with this folder open) to launch an Extension Development
Host with the extension loaded, then open a .bidhu file to see it in action.
Packaging (.vsix)
npm install
npx @vscode/vsce package
This produces bidhuscript-<version>.vsix, which can be installed manually via
code --install-extension bidhuscript-<version>.vsix or the "Install from VSIX"
command in VS Code / VSCodium / Cursor.
Note:
vscode:prepublish(whichvsce packageruns automatically) strips debug builds, source maps, and.d.tsfiles out ofnode_modules/web-tree-sitterbefore packaging, sincevscebundles dependencies verbatim based on their ownpackage.json"files" field rather than respecting.vscodeignore. This deletes those files from your localnode_modules. If you go back to editingsrc/extension.tsafter packaging,tscwill fail with missingweb-tree-sittertypes until you runnpm installagain to restore them. Always runnpm installbefore starting a new round of development.