diff options
| author | Thomas Vigouroux <tomvig38@gmail.com> | 2021-04-14 05:36:05 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-14 05:36:05 +0200 |
| commit | e652b2987a35b85a239740c6d591792bcf5de412 (patch) | |
| tree | c8b40cf5928bfa6524e0d221723cf974b7cf3dad /test/functional/treesitter/highlight_spec.lua | |
| parent | 6b16ec701e6557df0335203ce622c35466769784 (diff) | |
| parent | 8bea39f3725bd2490ec3b6b32cf61aab0c08db68 (diff) | |
| download | rneovim-e652b2987a35b85a239740c6d591792bcf5de412.tar.gz rneovim-e652b2987a35b85a239740c6d591792bcf5de412.tar.bz2 rneovim-e652b2987a35b85a239740c6d591792bcf5de412.zip | |
Merge pull request #14046 from nvim-treesitter/feature/language-tree-directive-config
feat(treesitter): allow injections to be configured through directives
Diffstat (limited to 'test/functional/treesitter/highlight_spec.lua')
| -rw-r--r-- | test/functional/treesitter/highlight_spec.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/treesitter/highlight_spec.lua b/test/functional/treesitter/highlight_spec.lua index d80d0fdbaf..05e0c5fe2c 100644 --- a/test/functional/treesitter/highlight_spec.lua +++ b/test/functional/treesitter/highlight_spec.lua @@ -445,7 +445,7 @@ describe('treesitter highlighting', function() exec_lua [[ local parser = vim.treesitter.get_parser(0, "c", { - queries = {c = "(preproc_def (preproc_arg) @c) (preproc_function_def value: (preproc_arg) @c)"} + injections = {c = "(preproc_def (preproc_arg) @c) (preproc_function_def value: (preproc_arg) @c)"} }) local highlighter = vim.treesitter.highlighter test_hl = highlighter.new(parser, {queries = {c = hl_query}}) |