mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 23:31:51 +00:00
fix(treesitter): make it get_captures_at_position
This commit is contained in:
@@ -617,6 +617,11 @@ describe('treesitter highlighting', function()
|
||||
-- bold will not be overwritten at the moment
|
||||
[12] = {background = Screen.colors.Red, bold = true, foreground = Screen.colors.Grey100};
|
||||
}}
|
||||
|
||||
eq({
|
||||
{capture='Error', priority='101'};
|
||||
{capture='type'};
|
||||
}, exec_lua [[ return vim.treesitter.get_captures_at_position(0, 0, 2) ]])
|
||||
end)
|
||||
|
||||
it("allows to use captures with dots (don't use fallback when specialization of foo exists)", function()
|
||||
|
Reference in New Issue
Block a user