-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Some PHP files detected as Hacklang #4229
Comments
Thanks for the report. Hack files can also use the |
I mean it detects PHP files that contain only HTML as Hack files |
Yep, |
hey |
@Arkanic #4229 (comment) applies to your case too. |
cause you created a php file that doesn't contain php code, so you need to add some php code |
If it can't really decide based on the content, the fallback language should still be the far more popular and original language for that file extension. This is PHP and not Hack. I find the current behaviour very confusing. Took me some time to finally find this issue with an explanation. |
I don't mind, it makes me look like I'm using some super secret language while. |
Thank you |
Thanks for this explanation |
Should not it be detected as HTML then? What Hack has to do with this? |
helpful |
Hello ! |
Now overrides documentation is in: https://github.com/github/linguist/blob/master/docs/overrides.md |
Preliminary Steps
Please confirm you have...
Problem Description
URL of the affected repository:
https://github.com/theel0ja/IPLookup/blob/fc18200e8678a3cc9fc071ecd6be10c8b95a3a10/src/add-to-flagfox.php
Last modified on:
2018-08-04
Expected language:
PHP
Detected language:
Hack
The text was updated successfully, but these errors were encountered: