mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	Fix heuristic for .fs
This commit is contained in:
		| @@ -137,9 +137,9 @@ module Linguist | |||||||
|     disambiguate "F#", "Forth", "GLSL" do |data| |     disambiguate "F#", "Forth", "GLSL" do |data| | ||||||
|       if /^(: |new-device)/.match(data) |       if /^(: |new-device)/.match(data) | ||||||
|         Language["Forth"] |         Language["Forth"] | ||||||
|       elsif /^(#light|import|let|module|namespace|open|type)/.match(data) |       elsif /^\s*(#light|import|let|module|namespace|open|type)/.match(data) | ||||||
|         Language["F#"] |         Language["F#"] | ||||||
|       elsif /^(#include|#pragma|precision|uniform|varying|void)/.match(data) |       elsif /^\s*(#include|#pragma|precision|uniform|varying|void)/.match(data) | ||||||
|         Language["GLSL"] |         Language["GLSL"] | ||||||
|       end |       end | ||||||
|     end |     end | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user