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.json once 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 (which vsce package runs automatically) strips
debug builds, source maps, and .d.ts files out of node_modules/web-tree-sitter
before packaging, since vsce bundles dependencies verbatim based on their own
package.json "files" field rather than respecting .vscodeignore. This
deletes those files from your local node_modules. If you go back to
editing src/extension.ts after packaging, tsc will fail with missing
web-tree-sitter types until you run npm install again to restore them.
Always run npm install before starting a new round of development.