Open kirawi opened 3 years ago
With tree-sitter we can likely do this in a much easier way: simply scan the start and end of each named node. VSCode still relies on textmate grammars so it has to parse the whole file by hand to determine matching pairs.
here's a nvim plugin based on tree-sitter
https://github.com/p00f/nvim-ts-rainbow
maybe the queries can be re-used
Looks pretty easy to implement.
The plug in has issues with performance. I'm not sure if this is an implementation issue or not though.
i might want to have a look at that.
I can not promise that i will be successful though.
Seems to be too difficult for me as of right now.
As this task requires a bit more understanding of the editor + tree-sitter
I think I have a clever idea of how to do this efficiently. I'll make a PR
good to see this pseudo-PR pick back up, the feature would be very nice to have.
Is there any rough idea if / when it might actually become a real PR?
https://marketplace.visualstudio.com/items?itemName=CoenraadS.bracket-pair-colorizer-2 https://github.com/microsoft/vscode/pull/129231