Merge pull request #2154 from pchaigno/kicad-files

Support for .pro INI files (KiCad project files)
This commit is contained in:
Arfon Smith
2015-02-27 10:14:20 -06:00
4 changed files with 84 additions and 6 deletions

View File

@@ -107,10 +107,14 @@ module Linguist
end
end
disambiguate "IDL", "Prolog" do |data|
disambiguate "IDL", "Prolog", "INI", "QMake" do |data|
if data.include?(":-")
Language["Prolog"]
else
elsif data.include?("last_client=")
Language["INI"]
elsif data.include?("HEADERS") && data.include?("SOURCES")
Language["QMake"]
elsif /^\s*function[ \w,]+$/.match(data)
Language["IDL"]
end
end