diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2022-10-16 14:52:15 +0200 |
|---|---|---|
| committer | Christian Clason <christian.clason@uni-due.de> | 2022-10-16 15:50:55 +0200 |
| commit | 42ab95d5e11f247c6f0c8f5181b02e816caa4a4f (patch) | |
| tree | 7b8ee3f2475405878eefe0fc8033d133d95dc64b /tests/query/highlights_spec.lua | |
| parent | Update lockfile.json (diff) | |
| download | nvim-treesitter-42ab95d5e11f247c6f0c8f5181b02e816caa4a4f.tar nvim-treesitter-42ab95d5e11f247c6f0c8f5181b02e816caa4a4f.tar.gz nvim-treesitter-42ab95d5e11f247c6f0c8f5181b02e816caa4a4f.tar.bz2 nvim-treesitter-42ab95d5e11f247c6f0c8f5181b02e816caa4a4f.tar.lz nvim-treesitter-42ab95d5e11f247c6f0c8f5181b02e816caa4a4f.tar.xz nvim-treesitter-42ab95d5e11f247c6f0c8f5181b02e816caa4a4f.tar.zst nvim-treesitter-42ab95d5e11f247c6f0c8f5181b02e816caa4a4f.zip | |
feat!: remove obsolete `TS*` highlight groups
Diffstat (limited to 'tests/query/highlights_spec.lua')
| -rw-r--r-- | tests/query/highlights_spec.lua | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/query/highlights_spec.lua b/tests/query/highlights_spec.lua index ec3a3913f..ff022ba21 100644 --- a/tests/query/highlights_spec.lua +++ b/tests/query/highlights_spec.lua @@ -1,4 +1,3 @@ -local ts_highlight = require "nvim-treesitter.highlight" -- yes, this is necessary to set the hlmap local highlighter = require "vim.treesitter.highlighter" local ts_utils = require "nvim-treesitter.ts_utils" local parsers = require "nvim-treesitter.parsers" @@ -72,8 +71,7 @@ local function check_assertions(file) local c = query._query.captures[capture] -- name of the capture in the query if c ~= nil and c ~= "spell" and c ~= "conceal" then captures[c] = true - local general_hl = ts_highlight.default_map[c] - highlights[general_hl] = true + highlights[c] = true end end end |
