Skip to content
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

Revise {java,type}scriptreact filetype support #47

Merged
merged 1 commit into from
Dec 18, 2019
Merged

Conversation

jparise
Copy link
Owner

@jparise jparise commented Dec 18, 2019

We previously supported JSX and TSX files using compound (dotted)
filetypes. Vim 8.2 also introduced distinct 'javascriptreact' and
'typescriptreact' filetypes, so support them as well.

This also removes support for the dedicated 'tsx' filetype. We now
specifically support both 'typescript.tsx' and 'typescriptreact', so
that should cover everyone's use case.

For our purposes, all of these extended filetypes simply load the
underlying 'javascript' or 'typescript' syntax support we already
provide.

We previously supported JSX and TSX files using compound (dotted)
filetypes. Vim 8.2 also introduced distinct 'javascriptreact' and
'typescriptreact' filetypes, so support them as well.

This also removes support for the dedicated 'tsx' filetype. We now
specifically support both 'typescript.tsx' and 'typescriptreact', so
that should cover everyone's use case.

For our purposes, all of these extended filetypes simply load the
underlying 'javascript' or 'typescript' syntax support we already
provide.
@jparise jparise merged commit fcadf91 into master Dec 18, 2019
@jparise jparise deleted the react-filetypes branch December 18, 2019 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant