This is the Brokk-owned and independently maintained fork of
tree-sitter/tree-sitter-javascript,
a JavaScript and JSX grammar for Tree-sitter.
Brokk maintains this fork for its code-intelligence tooling and publishes the
Rust package as
brokk-tree-sitter-javascript.
It intentionally diverges where Brokk needs language support that is not yet
available upstream. Unless you specifically need Brokk's changes, you may
prefer the upstream project.
Try the grammar in Brokk's web playground.
Add the Brokk-maintained JavaScript crate to your project:
cargo add brokk-tree-sitter-javascript@=0.25.1Or add it directly to Cargo.toml:
[dependencies]
brokk-tree-sitter-javascript = "=0.25.1"The npm and Python bindings retain their upstream-compatible package names but
are not published by this fork. The Brokk-namespaced Rust crate prefixes its
native symbols, so it can coexist with the upstream tree-sitter-javascript
crate in one executable.
This grammar intends to be a close approximation of the ECMAScript specification, with some extensions to support JSX syntax. We try to support the latest version of the spec, though it is possible that some very new features may not be supported yet.