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
Linguist still not acknowledging .pl as Perl scripts also #3230
Comments
@larsbrinkhoff Thanks for replying but I don't know nor use Prolog. I was reading a perl book when I created the .pl files and I checked and Perl's extension for the script files uses .pl.....Which is really confusing. Don't know why they had an alternate file extension like the other programming languages such as php-it uses php, php5,php7 etc. I tried renaming .pl to .perl but won't compile and rename every time committing from .pl to perl would just suck. So right now it's just really annoying. Other people are saying the same thing such as this person: #435. Hopefully there will be a solution to this bug soon. |
@wboswall In your case, these files are detected as Prolog because the smiley in these lines matches our heuristic. It's kind of a corner case, so I don't think we should make the regular expression more complicated to fix it (the heuristic will never be perfect anyway). |
It didn't work. So just hunted up other perl extensions and changed the ones in question with the new extension. Thank you for all of your help @larsbrinkhoff and @pchaigno Much appreciated!!!!!!!:-D |
GitHub uses Linguist to identify source code and .pl files are sometimes classified as Prolog files. There are various ways to override this. Using .gitattributes seems to be the easiest. https://github.com/github/linguist#overrides Similar issue: github-linguist/linguist#3230
Perl scripts is not being acknowledged as .pl but when the extension is changed it is then acknowledged as Perl. I don't have any Prolog scripts. What about creating a module that looks into the files to determine the language based on syntax and other certain characteristics that languages have that others don't.
The text was updated successfully, but these errors were encountered: