diff options
| author | Santos Gallegos <stsewd@protonmail.com> | 2021-05-31 12:03:27 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-31 17:03:27 +0000 |
| commit | c1f61d4ca1319747c27ec97b5f050b3d936e0a55 (patch) | |
| tree | 9f1f65777ec4a7882e34ea1ff5517d910b08cc5e /lua/nvim-treesitter/query.lua | |
| parent | 972f70956ac8635ab2f6d7ed0b24e5cd159d7a04 (diff) | |
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/nvim-treesitter/query.lua')
| -rw-r--r-- | lua/nvim-treesitter/query.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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. |
