mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
fix(treesitter): docs reflect parser:parse()
Update docs to document that `parser:parse()` now returns a table of trees
This commit is contained in:
parent
7caa622afc
commit
21eb2e5ef8
@ -47,7 +47,7 @@ Whenever you need to access the current syntax tree, parse the buffer: >
|
|||||||
|
|
||||||
tstree = parser:parse()
|
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
|
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
|
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,
|
be returned again without extra work. If the buffer was parsed before,
|
||||||
|
Loading…
Reference in New Issue
Block a user