aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/treesitter/highlighter.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2023-03-02 20:46:59 +0100
committerJustin M. Keyes <justinkz@gmail.com>2023-03-03 15:07:23 +0100
commit8414cfe7f4d8888698343cb54a3f373a28b365db (patch)
tree981139c88cec651c509f3704c6f55b2b564a6af3 /runtime/lua/vim/treesitter/highlighter.lua
parent506ffde1a7dd819f2a917907b024f42d32e3ad49 (diff)
downloadrneovim-8414cfe7f4d8888698343cb54a3f373a28b365db.tar.gz
rneovim-8414cfe7f4d8888698343cb54a3f373a28b365db.tar.bz2
rneovim-8414cfe7f4d8888698343cb54a3f373a28b365db.zip
docs: fix vim.treesitter tags
Problem: Help tags like vim.treesitter.language.add() are confusing because `vim.treesitter.language` is (thankfully) not a user-facing module. Solution: Ignore the "fstem" when generating "treesitter" tags.
Diffstat (limited to 'runtime/lua/vim/treesitter/highlighter.lua')
-rw-r--r--runtime/lua/vim/treesitter/highlighter.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/lua/vim/treesitter/highlighter.lua b/runtime/lua/vim/treesitter/highlighter.lua
index 8adaa4ef2f..e3deaf6ba6 100644
--- a/runtime/lua/vim/treesitter/highlighter.lua
+++ b/runtime/lua/vim/treesitter/highlighter.lua
@@ -58,7 +58,9 @@ function TSHighlighterQuery:query()
return self._query
end
---- Creates a new highlighter using @param tree
+---@private
+---
+--- Creates a highlighter for `tree`.
---
---@param tree LanguageTree parser object to use for highlighting
---@param opts (table|nil) Configuration of the highlighter: