fix: peacefully ignore query files without a valid language

master
figsoda 1 year ago committed by Christian Clason
parent b411a5c772
commit 01c27f37a1

@ -70,7 +70,9 @@ function M.lint(query_buf)
local ok, parser_info = pcall(vim.treesitter.inspect_language, query_lang)
parser_info = ok and parser_info
if not ok then
return
end
local matches = queries.get_matches(query_buf, "query-linter-queries")

Loading…
Cancel
Save