From 8cd17698fefaaf4c354d32cf52a57a39e488f29f Mon Sep 17 00:00:00 2001 From: Paul Chaignon Date: Sat, 17 Jan 2015 13:34:06 +0100 Subject: [PATCH] Slightly improve heuristic for C# --- lib/linguist/heuristics.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/linguist/heuristics.rb b/lib/linguist/heuristics.rb index 33df8958..42ff2241 100644 --- a/lib/linguist/heuristics.rb +++ b/lib/linguist/heuristics.rb @@ -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