summaryrefslogtreecommitdiff
path: root/lua/nvim-treesitter/parsers.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/nvim-treesitter/parsers.lua')
-rw-r--r--lua/nvim-treesitter/parsers.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua
index 9bac6a8f..a9d779ef 100644
--- a/lua/nvim-treesitter/parsers.lua
+++ b/lua/nvim-treesitter/parsers.lua
@@ -584,6 +584,8 @@ function M.get_parser(bufnr, lang)
end
end
+-- @deprecated This is only kept for legacy purposes.
+-- All root nodes should be accounted for.
function M.get_tree_root(bufnr)
local bufnr = bufnr or api.nvim_get_current_buf()