tree-sitter / tree-sitter-go

Go grammar for tree-sitter
MIT License
310 stars 65 forks source link

feat: treat iota as predeclared identifier #58

Closed kawaemon closed 2 years ago

kawaemon commented 2 years ago

I'm using this parser with nvim-treesitter, and I noticed that iota is not highlighted unlike true or other constants. This PR defines iota as predeclared identifier on grammer.js and on highlights query as well.

Checklist:

maxbrunsfeld commented 2 years ago

Thanks for this @kawaemon, and thanks for merging PRs @aryx 🙏 .