Merge pull request #3195 from larsbrinkhoff/r

Recognise R comments in heuristic.
This commit is contained in:
Lars Brinkhoff
2016-09-07 18:57:45 +02:00
committed by GitHub

View File

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