Slightly improve heuristic for C#

This commit is contained in:
Paul Chaignon
2015-01-17 13:34:06 +01:00
parent 3c6218f20e
commit 8cd17698fe

View File

@@ -72,7 +72,7 @@ module Linguist
disambiguate "C#", "Smalltalk" do |data|
if /![\w\s]+methodsFor: /.match(data)
Language["Smalltalk"]
elsif /^\s*namespace\s*[\w\.]+\s*{/.match(data) || /^\s*using\s*[\w\.]+\s*;/.match(data)
elsif /^\s*namespace\s*[\w\.]+\s*{/.match(data) || /^\s*\/\//.match(data)
Language["C#"]
end
end