mirror of
https://github.com/neovim/neovim.git
synced 2025-12-09 16:12:48 +00:00
docs: fix more treesitter parsing errors
This commit is contained in:
@@ -218,7 +218,7 @@ end
|
||||
---@param row integer Position row
|
||||
---@param col integer Position column
|
||||
---
|
||||
---@return table[] List of captures `{ capture = "capture name", metadata = { ... } }`
|
||||
---@return table[] List of captures `{ capture = "name", metadata = { ... } }`
|
||||
function M.get_captures_at_pos(bufnr, row, col)
|
||||
if bufnr == 0 then
|
||||
bufnr = a.nvim_get_current_buf()
|
||||
|
||||
@@ -639,7 +639,7 @@ end
|
||||
--- -- typically useful info about the node:
|
||||
--- local type = node:type() -- type of the captured node
|
||||
--- local row1, col1, row2, col2 = node:range() -- range of the capture
|
||||
--- ... use the info here ...
|
||||
--- -- ... use the info here ...
|
||||
--- end
|
||||
--- </pre>
|
||||
---
|
||||
@@ -693,7 +693,7 @@ end
|
||||
---
|
||||
--- local node_data = metadata[id] -- Node level metadata
|
||||
---
|
||||
--- ... use the info here ...
|
||||
--- -- ... use the info here ...
|
||||
--- end
|
||||
--- end
|
||||
--- </pre>
|
||||
|
||||
Reference in New Issue
Block a user