mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	Tighten up OCaml heuristic: only match at start of line.
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