mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
tests: use main parsers instead of nvim-treesitter parser for tests
This commit is contained in:
parent
e4675bc410
commit
3f876efce5
1 changed files with 2 additions and 6 deletions
|
|
@ -1,6 +1,5 @@
|
|||
require "nvim-treesitter.highlight" -- yes, this is necessary to set the hlmap
|
||||
local highlighter = require "vim.treesitter.highlighter"
|
||||
local utils = require "nvim-treesitter.utils"
|
||||
local ts_utils = require "nvim-treesitter.ts_utils"
|
||||
local parsers = require "nvim-treesitter.parsers"
|
||||
|
||||
|
|
@ -22,11 +21,8 @@ local function check_assertions(file)
|
|||
local assertions = vim.fn.json_decode(
|
||||
vim.fn.system(
|
||||
"highlight-assertions -p '"
|
||||
.. utils.get_parser_install_dir()
|
||||
.. "/"
|
||||
.. lang
|
||||
.. ".so'"
|
||||
.. " -s '"
|
||||
.. vim.api.nvim_get_runtime_file("parser/" .. lang .. ".so", false)[1]
|
||||
.. "' -s '"
|
||||
.. file
|
||||
.. "' -c "
|
||||
.. comment_node
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue