-
Notifications
You must be signed in to change notification settings - Fork 145
Include jsx
in filetype when extension is tsx
#140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@leafgarland, any thoughts on this? |
Hi @chaucerbao do you use a tsx syntax like |
I do not use |
I notice that ianks/vim-tsx sets the filetype to
However, I don't think |
@leafgarland, it looks like you've already accounted for Is that your experience as well? If so, then this update should be pretty safe. |
Nice work, thanks. I'll double check on my setup and merge if no issues. |
@leafgarland, have you run into any issues with this? |
ping @leafgarland @chaucerbao |
@bttf Not much for me to do here. Just waiting to see if the PR works for @leafgarland |
I tried this out with mxw/vim-jsx and some syntax highlighting broke. It looked like once it got inside a jsxRegion it never came out and the rest of the file had broken syntax highlighting. It still works ok with ianks/vim-tsx and without either. |
Oh interesting. I've been running I imagine others would have run into the issue you're seeing, but I haven't come across any mentions of it yet, in this (current) thread, or this one |
Just cleaning up |
Following the convention that the filetype for .jsx files is
javascript.jsx
, .tsx files should also include thejsx
filetype.This enables syntax highlighting for the JSX portion in .tsx files.