aboutsummaryrefslogtreecommitdiff
path: root/test/functional/treesitter/highlight_spec.lua
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2022-12-17 13:43:46 +0100
committerGitHub <noreply@github.com>2022-12-17 13:43:46 +0100
commit1c4794944deb734b24b4a424c50b766a96e050dd (patch)
treee1ccf4ccce199b19e1b98d2c6b2cc179a1fa25c1 /test/functional/treesitter/highlight_spec.lua
parentd65684f0c755a9341412423543b65ec872196440 (diff)
parentef91146efcece1b6d97152251e7137d301146189 (diff)
downloadrneovim-1c4794944deb734b24b4a424c50b766a96e050dd.tar.gz
rneovim-1c4794944deb734b24b4a424c50b766a96e050dd.tar.bz2
rneovim-1c4794944deb734b24b4a424c50b766a96e050dd.zip
Merge pull request #21393 from folke/highlight_show
feat(lsp): add function to get semantic tokens at cursor feat: `vim.inspect_pos()`, `vim.show_pos()` and `:Inspect[!]`
Diffstat (limited to 'test/functional/treesitter/highlight_spec.lua')
-rw-r--r--test/functional/treesitter/highlight_spec.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/treesitter/highlight_spec.lua b/test/functional/treesitter/highlight_spec.lua
index ae3f42ff0a..2a2311c0fa 100644
--- a/test/functional/treesitter/highlight_spec.lua
+++ b/test/functional/treesitter/highlight_spec.lua
@@ -605,8 +605,8 @@ describe('treesitter highlighting', function()
}}
eq({
- {capture='Error', metadata = { priority='101' }};
- {capture='type', metadata = { } };
+ {capture='Error', metadata = { priority='101' }, lang='c' };
+ {capture='type', metadata = { }, lang='c' };
}, exec_lua [[ return vim.treesitter.get_captures_at_pos(0, 0, 2) ]])
end)