Support for .pro INI files (KiCad project files)

Update the heuristic for .pro to include both INI and QMake files
Fixes #2116
This commit is contained in:
Paul Chaignon
2015-02-22 19:33:06 +01:00
parent ad9a2d231e
commit e592381a54
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

View File

@@ -1311,6 +1311,7 @@ INI:
- .ini
- .cfg
- .prefs
- .pro
- .properties
tm_scope: source.ini
aliases: