mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-12 00:10:04 -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
|
require "nvim-treesitter.highlight" -- yes, this is necessary to set the hlmap
|
||||||
local highlighter = require "vim.treesitter.highlighter"
|
local highlighter = require "vim.treesitter.highlighter"
|
||||||
local utils = require "nvim-treesitter.utils"
|
|
||||||
local ts_utils = require "nvim-treesitter.ts_utils"
|
local ts_utils = require "nvim-treesitter.ts_utils"
|
||||||
local parsers = require "nvim-treesitter.parsers"
|
local parsers = require "nvim-treesitter.parsers"
|
||||||
|
|
||||||
|
|
@ -22,11 +21,8 @@ local function check_assertions(file)
|
||||||
local assertions = vim.fn.json_decode(
|
local assertions = vim.fn.json_decode(
|
||||||
vim.fn.system(
|
vim.fn.system(
|
||||||
"highlight-assertions -p '"
|
"highlight-assertions -p '"
|
||||||
.. utils.get_parser_install_dir()
|
.. vim.api.nvim_get_runtime_file("parser/" .. lang .. ".so", false)[1]
|
||||||
.. "/"
|
.. "' -s '"
|
||||||
.. lang
|
|
||||||
.. ".so'"
|
|
||||||
.. " -s '"
|
|
||||||
.. file
|
.. file
|
||||||
.. "' -c "
|
.. "' -c "
|
||||||
.. comment_node
|
.. comment_node
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue