Improve Prolog .pro heuristic to avoid false positives (#3931)

The `[a:-b]` syntax for index selection in arrays is valid in IDL and
matches the heuristic for Prolog. Update the Prolog heuristic to
exclude `[`.
This commit is contained in:
Paul Chaignon
2017-12-02 15:08:19 +01:00
committed by GitHub
parent 8d27845f8c
commit a76805e40d

View File

@@ -379,7 +379,7 @@ module Linguist
end
disambiguate ".pro" do |data|
if /^[^#]+:-/.match(data)
if /^[^\[#]+:-/.match(data)
Language["Prolog"]
elsif data.include?("last_client=")
Language["INI"]