Closed theHamsta closed 8 months ago
Topiary is handling anchors correctly; it's query-fmt that mangles them (due to lack of explicit handling).
Is that even valid (trailing anchor)?
Is that even valid (trailing anchor)?
It should be. It means the last named node of a parent (at least it gets interpreted as such). See https://github.com/nvim-treesitter/nvim-treesitter/pull/5151
@clason @amaanq could this be the reason why Topiary formatting has problems with some anchor expressions