Closed miki725 closed 2 years ago
This repo is just the parser, so unless the parse tree is wrong, you should open the issue on the Neovim repo.
looks like this an issue with the theme with not enough color definitions treesitter sets when parsing syntax more accurately
The following piece of code is valid but it is rendered incorrectly:
Here's a link to the TypeScript Playground showing that the snippet above is valid JavaScript or TypeScript:
https://www.typescriptlang.org/play?#code/C4TwDgpgBAKgFgSwHYHMDOUC8UDeUBmA9oQFxRrABOyKUAvgNwBQTEAHmIZcFAMYA2AQzQYAYsQA8TKDKgA5QQFto7YBCQATDAGsIIQvliJUaADTTZAZQCuAI1CQoq9VqM00AbQXKAuuYB8uBYyYHb8CLwExAAUAPqCZN4QplCxtmQ29uAQAJS4dEx0QA
The output of
tree-sitter parse
is the following:in typescript playground it renders as:
in neovim without treesitter same typescript file is rendered as:
simply enabling treesitter with typescript support it starts rendering as:
given that default theme works as expected not sure if this some issue with my vim setup or treesitter (Im just giving it a shot so cant point to any configs). any pointers?