tree-sitter / tree-sitter-c

C grammar for tree-sitter
MIT License
225 stars 100 forks source link

fix: flat node structure for else if #199

Closed ribru17 closed 3 months ago

ribru17 commented 5 months ago

Flattens the structure for else if .... This is sort of a human convenience change, as technically an else if is just an if nested in the else clause... but this will make a nicer tree (though indentation will have to be updated e.g. in nvim-treesitter)

Fixes #198

amaanq commented 5 months ago

Idk, this just feels incorrect overall but I understand the reasoning behind it. @maxbrunsfeld?

amaanq commented 3 months ago

given the recent improvements to fetching a parent in tree-sitter and neovim, I'm closing this out