tree-sitter-grammars / tree-sitter-odin

Odin grammar for tree-sitter
MIT License
17 stars 4 forks source link

feat: improve indents #11

Closed laytan closed 5 months ago

laytan commented 5 months ago

I have been tweaking these indent queries during work on projects and this seems like a good version to contribute, there are a few/bunch of small issues you encounter with the current indentation queries.

A few of the issues solved here:

https://github.com/tree-sitter-grammars/tree-sitter-odin/assets/20369598/e6c9cab2-5b5e-4dab-95bc-48e2dfe16ffb

https://github.com/tree-sitter-grammars/tree-sitter-odin/assets/20369598/5bf442ae-d94c-4a85-8b89-f4ee46dc3e9c

https://github.com/tree-sitter-grammars/tree-sitter-odin/assets/20369598/8bad56f0-26b6-4dab-8f7a-01f2805bd9e2

amaanq commented 5 months ago

do you use neovim? probs would be good to pr these fixes there too (nvim-treesitter)

laytan commented 5 months ago

I was originally under the impression that it gets synced from here, I will make a PR to sync.