From c1f61d4ca1319747c27ec97b5f050b3d936e0a55 Mon Sep 17 00:00:00 2001 From: Santos Gallegos Date: Mon, 31 May 2021 12:03:27 -0500 Subject: Improve check-queries (#1253) - Add checks for injections. - Allow queries that start with [A-Z] for highlights only. - Don't stop on the first error, finish checking all queries. --- lua/nvim-treesitter/query.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua/nvim-treesitter/query.lua') diff --git a/lua/nvim-treesitter/query.lua b/lua/nvim-treesitter/query.lua index 07896f22..397d733f 100644 --- a/lua/nvim-treesitter/query.lua +++ b/lua/nvim-treesitter/query.lua @@ -9,7 +9,7 @@ local M = {} local EMPTY_ITER = function() end -M.built_in_query_groups = {'highlights', 'locals', 'folds', 'indents'} +M.built_in_query_groups = {'highlights', 'locals', 'folds', 'indents', 'injections'} -- Creates a function that checks whether a given query exists -- for a specific language. -- cgit v1.2.3