github-linguist / linguist

Language Savant. If your repository's language is being reported incorrectly, send us a pull request!
MIT License
12.27k stars 4.25k forks source link

*.pro extension is also used for KiCad project files #2186

Closed Miceuz closed 9 years ago

Miceuz commented 9 years ago

Now *.pro is recognised as prolog source code.

Miceuz commented 9 years ago

Repos in question: https://github.com/Miceuz/ultimate-temperature-controller https://github.com/Miceuz/soil-moisture-sensor-analog

thorade commented 9 years ago

QT Creator also uses *.pro as extension for its project files. QT Creator files are easily identified by the first 5 lines of the file (especially line 3):

#-------------------------------------------------
#
# Project created by QtCreator 2012-06-06T19:03:23
#
#-------------------------------------------------

Searching for https://github.com/search?q=%23+Project+created+by+QtCreator&type=Code&utf8=%E2%9C%93 gives 40.000+ files that are mis-identified as Prolog.

pchaigno commented 9 years ago

@Miceuz #2154 fixes this. It was recently merged and should be in the next release.