I know this isn't a completely valid file, but it would be nice to not generate a token for the EOF mark ((3, 0) position).
This is causing several bugs on neovim https://github.com/nvim-treesitter/nvim-treesitter/issues/1531, we are making our code to check for cases like this so feel free to close this if you think is fine generating tokens like this for an incomplete file.
This file generates the following tree
I know this isn't a completely valid file, but it would be nice to not generate a token for the EOF mark ((3, 0) position). This is causing several bugs on neovim https://github.com/nvim-treesitter/nvim-treesitter/issues/1531, we are making our code to check for cases like this so feel free to close this if you think is fine generating tokens like this for an incomplete file.