Closed Redoxahmii closed 4 months ago
@craftzdog Treesitter has created a separate Tree parser for tsx which is named tsx
which needed to be installed in order for highlights to work.
That was not installed for me which was causing my syntax to break so these changes might not be necessary.
Before it used typescript
as far as i think but i might be wrong.
Sorry for my mistake.
I have tsx
installed, so I think that's why we've been seeing the different highlighting in https://github.com/craftzdog/solarized-osaka.nvim/issues/24#issuecomment-1982597578
Thanks for letting me know and good to hear that you've found the culprit.
The parser for .
tsx
seems to have changed and is using altogether different tags.The color highlighting was completely broken for
.tsx
files so added this commit to make it bearable.For some of the things the parser does not have tags so cannot completely replicate the colors of
.jsx
files.Before:
.jsx
colors for comparison:typescriptProp
did not display any changed behaviors when assigning colors which i could not figure out why so better to look into it. I still provided it with the color which was being used in.jsx
files.