mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
fix(predicates): Fix #446: highlight property only if not a method
This commit is contained in:
parent
f4979e5379
commit
3674ad89df
3 changed files with 7 additions and 3 deletions
|
|
@ -54,6 +54,7 @@ local function has_ancestor(match, pattern, bufnr, pred)
|
|||
end
|
||||
return false
|
||||
end
|
||||
|
||||
query.add_predicate('has-ancestor?', has_ancestor)
|
||||
|
||||
query.add_predicate('has-parent?', has_ancestor)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue