aboutsummaryrefslogtreecommitdiffstats
path: root/tests/query/highlights_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/query/highlights_spec.lua')
-rw-r--r--tests/query/highlights_spec.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/query/highlights_spec.lua b/tests/query/highlights_spec.lua
index 8bfd3c2ec..548a7eeba 100644
--- a/tests/query/highlights_spec.lua
+++ b/tests/query/highlights_spec.lua
@@ -1,6 +1,6 @@
local highlighter = require "vim.treesitter.highlighter"
-local ts_utils = require "nvim-treesitter.ts_utils"
local parsers = require "nvim-treesitter.parsers"
+local ts = vim.treesitter
local COMMENT_NODES = {
markdown = "html_block",
@@ -67,7 +67,7 @@ local function check_assertions(file)
assert.Truthy(node)
assert.is.number(row)
assert.is.number(col)
- if hl and ts_utils.is_in_node_range(node, row, col) then
+ if hl and ts.is_in_node_range(node, row, col) then
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