Files
neovim/runtime/lua/vim
Volodymyr Chernetskyi 2f5df7add7 fix(treesitter): #has-parent? errors on a node with no parent
Problem:
The #has-parent? predicate indexes the result of node:parent() without
checking it, so a capture that matches a tree's root node raises

    query.lua:600: attempt to index a nil value

instead of simply not matching. In a highlights query that breaks
highlighting for the whole buffer. The sibling #has-ancestor? predicate
handles the same situation.

Solution:
Treat a missing parent as "does not match".

AI-assisted
2026-09-06 18:27:02 +02:00
..
2026-09-03 19:17:25 +01:00
2026-09-03 19:17:25 +01:00
2026-09-03 19:17:25 +01:00
2026-01-09 10:07:15 +01:00
2026-08-25 13:32:25 +02:00