mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +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
|
||||
|
||||
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"]
|
||||
|
||||
Reference in New Issue
Block a user