diff options
author | Christian Clason <c.clason@uni-graz.at> | 2023-03-31 17:09:00 +0200 |
---|---|---|
committer | Christian Clason <c.clason@uni-graz.at> | 2023-04-01 15:07:16 +0200 |
commit | d7f7450017b9b05303698a6cda54303ef22c63b3 (patch) | |
tree | e6b48fffc27a65f3cb4389741926933e4dec81d3 /runtime | |
parent | 2a298f2e48eb081f2e3b58068af589b82fe76a18 (diff) | |
download | rneovim-d7f7450017b9b05303698a6cda54303ef22c63b3.tar.gz rneovim-d7f7450017b9b05303698a6cda54303ef22c63b3.tar.bz2 rneovim-d7f7450017b9b05303698a6cda54303ef22c63b3.zip |
refactor(treesitter)!: rename help parser to vimdoc
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/news.txt | 4 | ||||
-rw-r--r-- | runtime/lua/vim/treesitter/language.lua | 4 | ||||
-rw-r--r-- | runtime/queries/vimdoc/highlights.scm (renamed from runtime/queries/help/highlights.scm) | 0 | ||||
-rw-r--r-- | runtime/queries/vimdoc/injections.scm (renamed from runtime/queries/help/injections.scm) | 0 |
4 files changed, 7 insertions, 1 deletions
diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt index 401719b432..671bdee31b 100644 --- a/runtime/doc/news.txt +++ b/runtime/doc/news.txt @@ -62,6 +62,10 @@ The following changes may require adaptations in user config or plugins. • |nvim_exec()| is now deprecated in favor of |nvim_exec2()|. +• `help` treesitter parser was renamed to `vimdoc`. The only user-visible + change is that language-specific highlight groups need to be renamed from + `@foo.help` to `@foo.vimdoc`. + ============================================================================== NEW FEATURES *news-features* diff --git a/runtime/lua/vim/treesitter/language.lua b/runtime/lua/vim/treesitter/language.lua index b1c788e6ba..5b74bb6200 100644 --- a/runtime/lua/vim/treesitter/language.lua +++ b/runtime/lua/vim/treesitter/language.lua @@ -4,7 +4,9 @@ local a = vim.api local M = {} ---@type table<string,string> -local ft_to_lang = {} +local ft_to_lang = { + help = 'vimdoc', +} --- Get the filetypes associated with the parser named {lang}. --- @param lang string Name of parser diff --git a/runtime/queries/help/highlights.scm b/runtime/queries/vimdoc/highlights.scm index c0d88301bc..c0d88301bc 100644 --- a/runtime/queries/help/highlights.scm +++ b/runtime/queries/vimdoc/highlights.scm diff --git a/runtime/queries/help/injections.scm b/runtime/queries/vimdoc/injections.scm index 260a05d863..260a05d863 100644 --- a/runtime/queries/help/injections.scm +++ b/runtime/queries/vimdoc/injections.scm |