Merge pull request #2314 from larsbrinkhoff/ocaml

Tighten up OCaml heuristic
This commit is contained in:
Arfon Smith
2015-04-07 07:56:16 -05:00

View File

@@ -267,7 +267,7 @@ module Linguist
end
disambiguate "OCaml", "Standard ML" do |data|
if /module|let rec |match\s+(\S+\s)+with/.match(data)
if /(^\s*module)|let rec |match\s+(\S+\s)+with/.match(data)
Language["OCaml"]
elsif /=> |case\s+(\S+\s)+of/.match(data)
Language["Standard ML"]