mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
add heuristic for Limbo
This commit is contained in:
@@ -184,7 +184,7 @@ module Linguist
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
disambiguate "M", "MUF", "Mathematica", "Matlab", "Mercury", "Objective-C" do |data|
|
disambiguate "Limbo", "M", "MUF", "Mathematica", "Matlab", "Mercury", "Objective-C" do |data|
|
||||||
if ObjectiveCRegex.match(data)
|
if ObjectiveCRegex.match(data)
|
||||||
Language["Objective-C"]
|
Language["Objective-C"]
|
||||||
elsif data.include?(":- module")
|
elsif data.include?(":- module")
|
||||||
@@ -197,6 +197,8 @@ module Linguist
|
|||||||
Language["Mathematica"]
|
Language["Mathematica"]
|
||||||
elsif /^\s*%/.match(data)
|
elsif /^\s*%/.match(data)
|
||||||
Language["Matlab"]
|
Language["Matlab"]
|
||||||
|
elsif /^\w+\s*:\s*module\s*{/.match(data)
|
||||||
|
Language["Limbo"]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user