mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	Heuristics for Groff and Nemerle.
This commit is contained in:
		| @@ -299,5 +299,13 @@ module Linguist | |||||||
|         Language["Groff"] |         Language["Groff"] | ||||||
|       end |       end | ||||||
|     end |     end | ||||||
|  |  | ||||||
|  |     disambiguate "Groff", "Nemerle" do |data| | ||||||
|  |       if /^[.']/.match(data) | ||||||
|  |         Language["Groff"] | ||||||
|  |       elsif /^(module|namespace|using)\s/.match(data) | ||||||
|  |         Language["Nemerle"] | ||||||
|  |       end | ||||||
|  |     end | ||||||
|   end |   end | ||||||
| end | end | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user