mirror of
https://github.com/neovim/neovim
synced 2025-07-17 01:31:48 +00:00
fix(treesitter): correctly parse queries with combined injections
This commit is contained in:
committed by
Christian Clason
parent
8c4c9ca192
commit
9b25c68db2
@ -59,7 +59,7 @@ function Query:_process_patterns()
|
|||||||
if is_directive(pred_name) then
|
if is_directive(pred_name) then
|
||||||
table.insert(directives, pattern)
|
table.insert(directives, pattern)
|
||||||
if vim.deep_equal(pattern, { 'set!', 'injection.combined' }) then
|
if vim.deep_equal(pattern, { 'set!', 'injection.combined' }) then
|
||||||
self._has_combined_injections = true
|
self.has_combined_injections = true
|
||||||
end
|
end
|
||||||
if vim.deep_equal(pattern, { 'set!', 'conceal_lines', '' }) then
|
if vim.deep_equal(pattern, { 'set!', 'conceal_lines', '' }) then
|
||||||
self.has_conceal_line = true
|
self.has_conceal_line = true
|
||||||
|
Reference in New Issue
Block a user