Recognise R comments in heuristic.

This commit is contained in:
Lars Brinkhoff
2016-09-07 08:05:22 +02:00
parent df98c86acd
commit 2d51a5dba4

View File

@@ -354,7 +354,7 @@ module Linguist
disambiguate ".r" do |data|
if /\bRebol\b/i.match(data)
Language["Rebol"]
elsif data.include?("<-")
elsif /<-|^\s*#/.match(data)
Language["R"]
end
end