-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
tsx disambiguation #2761
Comments
The heuristic for If you think this is a recurrent classification mistake, we could evaluate the number of files incorrectly classified for a sample? |
Ah ok. So, I did some additional research into the
|
Thanks for documenting this @mking. We'd welcome a Pull Request implementing this heuristic. Alternatively the Linguist overrides (https://github.com/github/linguist#overrides) are probably the best solution for now. |
@arfon I've tried now using every glob combination I can think of to get Am I missing something? https://github.com/dsifford/academic-bloggers-toolkit/blob/master/.gitattributes |
@dsifford - can you tell me what you're not seeing? These are the language stats I see for your repository: |
@arfon Sorry, perhaps I had the wrong idea on how deeply linguist goes in github.. My concern was with this: Specifically, the |
I'm afraid |
Ah, understood. No problem at all. Thanks for the clarification 👍 |
Using the technique as discussed in github-linguist#2761.
Using the technique as discussed in #2761.
Here is an example where a TypeScript
.tsx
file is incorrectly recognized as tiled map format.One way to solve this is to add a disambiguation heuristic for tsx (similar to the one used for ts).
What do you think?
The text was updated successfully, but these errors were encountered: