Add APIs for retrieving tree cursor's depth and descendant index
This commit is contained in:
parent
9dd725b4e3
commit
a2119cb691
6 changed files with 47 additions and 28 deletions
|
|
@ -12,7 +12,7 @@ WebAssembly bindings to the [Tree-sitter](https://github.com/tree-sitter/tree-si
|
|||
You can download the `tree-sitter.js` and `tree-sitter.wasm` files from [the latest GitHub release](https://github.com/tree-sitter/tree-sitter/releases/latest) and load them using a standalone script:
|
||||
|
||||
```html
|
||||
<script src="/the/path/to/tree-sitter.js"/>
|
||||
<script src="/the/path/to/tree-sitter.js"></script>
|
||||
|
||||
<script>
|
||||
const Parser = window.TreeSitter;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue