mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 09:40:21 +00:00
Merge pull request #2314 from larsbrinkhoff/ocaml
Tighten up OCaml heuristic
This commit is contained in:
@@ -267,7 +267,7 @@ module Linguist
|
|||||||
end
|
end
|
||||||
|
|
||||||
disambiguate "OCaml", "Standard ML" do |data|
|
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"]
|
Language["OCaml"]
|
||||||
elsif /=> |case\s+(\S+\s)+of/.match(data)
|
elsif /=> |case\s+(\S+\s)+of/.match(data)
|
||||||
Language["Standard ML"]
|
Language["Standard ML"]
|
||||||
|
|||||||
Reference in New Issue
Block a user