aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorSantos Gallegos <stsewd@protonmail.com>2021-05-31 12:03:27 -0500
committerGitHub <noreply@github.com>2021-05-31 17:03:27 +0000
commitc1f61d4ca1319747c27ec97b5f050b3d936e0a55 (patch)
tree9f1f65777ec4a7882e34ea1ff5517d910b08cc5e /lua
parentUpdate lockfile.json (diff)
downloadnvim-treesitter-c1f61d4ca1319747c27ec97b5f050b3d936e0a55.tar
nvim-treesitter-c1f61d4ca1319747c27ec97b5f050b3d936e0a55.tar.gz
nvim-treesitter-c1f61d4ca1319747c27ec97b5f050b3d936e0a55.tar.bz2
nvim-treesitter-c1f61d4ca1319747c27ec97b5f050b3d936e0a55.tar.lz
nvim-treesitter-c1f61d4ca1319747c27ec97b5f050b3d936e0a55.tar.xz
nvim-treesitter-c1f61d4ca1319747c27ec97b5f050b3d936e0a55.tar.zst
nvim-treesitter-c1f61d4ca1319747c27ec97b5f050b3d936e0a55.zip
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.
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-treesitter/query.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/nvim-treesitter/query.lua b/lua/nvim-treesitter/query.lua
index 07896f22f..397d733f4 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.