diff options
author | bkegley <hi@bryankegley.me> | 2020-11-24 20:56:47 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-24 20:56:47 -0600 |
commit | 21eb2e5ef8ee0dcbce6200e6d24958797466af1a (patch) | |
tree | 877c8186398199a259d166554110406836b2445d | |
parent | 7caa622afcbbc1f789c24a3f29525759486208da (diff) | |
download | rneovim-21eb2e5ef8ee0dcbce6200e6d24958797466af1a.tar.gz rneovim-21eb2e5ef8ee0dcbce6200e6d24958797466af1a.tar.bz2 rneovim-21eb2e5ef8ee0dcbce6200e6d24958797466af1a.zip |
fix(treesitter): docs reflect parser:parse()
Update docs to document that `parser:parse()` now returns a table of trees
-rw-r--r-- | runtime/doc/treesitter.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/doc/treesitter.txt b/runtime/doc/treesitter.txt index b6a238f158..ae77b0a35a 100644 --- a/runtime/doc/treesitter.txt +++ b/runtime/doc/treesitter.txt @@ -47,7 +47,7 @@ Whenever you need to access the current syntax tree, parse the buffer: > tstree = parser:parse() -<This will return an immutable tree that represents the current state of the +<This will return a table of immutable trees that represent the current state of the buffer. When the plugin wants to access the state after a (possible) edit it should call `parse()` again. If the buffer wasn't edited, the same tree will be returned again without extra work. If the buffer was parsed before, |