aboutsummaryrefslogtreecommitdiff
path: root/test/functional/treesitter/highlight_spec.lua
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2022-09-16 09:05:05 +0200
committerGitHub <noreply@github.com>2022-09-16 09:05:05 +0200
commit9ec4b20be695501ba166f31dec39ef9e30cc7dd8 (patch)
treec49f32bedf7b4859d8db60ccfb52774cbf82d56c /test/functional/treesitter/highlight_spec.lua
parent982fef6018fb64c883ddafc897c8f7c58fb1c62d (diff)
downloadrneovim-9ec4b20be695501ba166f31dec39ef9e30cc7dd8.tar.gz
rneovim-9ec4b20be695501ba166f31dec39ef9e30cc7dd8.tar.bz2
rneovim-9ec4b20be695501ba166f31dec39ef9e30cc7dd8.zip
fix(treesitter): return full metadata for get_captures_at_position (#20203)
fix(treesitter): get_captures_at_position returns metadata Return the full `metadata` table for the capture instead of just the priority. Further cleanup of related docs.
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 d557b2c012..1684337c3c 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', priority='101'};
- {capture='type'};
+ {capture='Error', metadata = { priority='101' }};
+ {capture='type', metadata = { } };
}, exec_lua [[ return vim.treesitter.get_captures_at_position(0, 0, 2) ]])
end)