export and break keywords are marked as normal @keyword by TreeSitter but marked differently by vscode:
Solution:
Even though it is not the best solution, currently treesitter has no extensibility to allow for custom query captures therefore we need to override them ourselves. Even in doing this, I opted for not creating a new capture group since this could lead to potentially more errors and just extended the keywords to enter into existing capturing groups. We could try to apply this changes to https://github.com/tree-sitter/tree-sitter-typescript but I'm not sure it would be applicable to all themes and parsers.
Current:
export
andbreak
keywords are marked as normal@keyword
by TreeSitter but marked differently by vscode:Solution:
Even though it is not the best solution, currently treesitter has no extensibility to allow for custom query captures therefore we need to override them ourselves. Even in doing this, I opted for not creating a new capture group since this could lead to potentially more errors and just extended the keywords to enter into existing capturing groups. We could try to apply this changes to https://github.com/tree-sitter/tree-sitter-typescript but I'm not sure it would be applicable to all themes and parsers.