mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Slightly improve heuristic for C#
This commit is contained in:
@@ -72,7 +72,7 @@ module Linguist
|
|||||||
disambiguate "C#", "Smalltalk" do |data|
|
disambiguate "C#", "Smalltalk" do |data|
|
||||||
if /![\w\s]+methodsFor: /.match(data)
|
if /![\w\s]+methodsFor: /.match(data)
|
||||||
Language["Smalltalk"]
|
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#"]
|
Language["C#"]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user