-
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
Not all Hack files are detected correctly #4346
Comments
Thanks for the report @azjezz! We could probably improve results here with a partial heuristic rule based on You checked the |
i could do that, but i guess this can be fix as you said based on |
there's also the lack of color support in hack. |
My new heuristic rule is unlikely to handle all cases, unless I consider all
It looks like that file is detected as C++, so not an issue with the Hack highlighting. |
Okay. Thanks for the information. I've made a pull request (cf #4347) to add a new heuristic rule. It should help detect Hack |
The fix will take effect with the next release of Linguist, which usually happens once a month. |
Preliminary Steps
Problem Description
URL of the affected repository:
https://github.com/azjezz/waffle
Last modified on:
2018-12-08
Expected language:
Hack ( 100% )
Detected language:
Hack ( 61.5% )
C++ ( 38.5% )
The text was updated successfully, but these errors were encountered: