mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	docs(treesitter): fix parse errors
This commit is contained in:
		| @@ -157,7 +157,7 @@ end | |||||||
|  |  | ||||||
| --- Returns the node's range or an unpacked range table | --- Returns the node's range or an unpacked range table | ||||||
| --- | --- | ||||||
| ---@param node_or_range (TSNode|table) Node or table of positions | ---@param node_or_range (TSNode | table) Node or table of positions | ||||||
| --- | --- | ||||||
| ---@return integer start_row | ---@return integer start_row | ||||||
| ---@return integer start_col | ---@return integer start_col | ||||||
| @@ -339,7 +339,7 @@ end | |||||||
| ---             - lang string|nil Parser language | ---             - lang string|nil Parser language | ||||||
| ---             - ignore_injections boolean Ignore injected languages (default true) | ---             - ignore_injections boolean Ignore injected languages (default true) | ||||||
| --- | --- | ||||||
| ---@return TSNode|nil under the cursor | ---@return TSNode | nil Node at the given position | ||||||
| ---@deprecated | ---@deprecated | ||||||
| function M.get_node_at_pos(bufnr, row, col, opts) | function M.get_node_at_pos(bufnr, row, col, opts) | ||||||
|   vim.deprecate('vim.treesitter.get_node_at_pos()', 'vim.treesitter.get_node()', '0.10') |   vim.deprecate('vim.treesitter.get_node_at_pos()', 'vim.treesitter.get_node()', '0.10') | ||||||
|   | |||||||
| @@ -653,7 +653,7 @@ end | |||||||
| ---@param range Range `{ start_line, start_col, end_line, end_col }` | ---@param range Range `{ start_line, start_col, end_line, end_col }` | ||||||
| ---@param opts table|nil Optional keyword arguments: | ---@param opts table|nil Optional keyword arguments: | ||||||
| ---             - ignore_injections boolean Ignore injected languages (default true) | ---             - ignore_injections boolean Ignore injected languages (default true) | ||||||
| ---@return TSNode|nil Found node | ---@return TSNode | nil Found node | ||||||
| function LanguageTree:named_node_for_range(range, opts) | function LanguageTree:named_node_for_range(range, opts) | ||||||
|   local tree = self:tree_for_range(range, opts) |   local tree = self:tree_for_range(range, opts) | ||||||
|   if tree then |   if tree then | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Christian Clason
					Christian Clason