diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2023-03-02 20:46:59 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2023-03-03 15:07:23 +0100 |
commit | 8414cfe7f4d8888698343cb54a3f373a28b365db (patch) | |
tree | 981139c88cec651c509f3704c6f55b2b564a6af3 /runtime/lua/vim/treesitter/highlighter.lua | |
parent | 506ffde1a7dd819f2a917907b024f42d32e3ad49 (diff) | |
download | rneovim-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.lua | 4 |
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: |