lib/linguist/heuristics.rb in github-linguist-4.8.17 vs lib/linguist/heuristics.rb in github-linguist-4.8.18

- old
+ new

@@ -108,9 +108,15 @@ elsif /\/\* |\/\/ |^\}/.match(data) Language["OpenCL"] end end + disambiguate ".cls" do |data| + if /\\\w+{/.match(data) + Language["TeX"] + end + end + disambiguate ".cs" do |data| if /![\w\s]+methodsFor: /.match(data) Language["Smalltalk"] elsif /^\s*namespace\s*[\w\.]+\s*{/.match(data) || /^\s*\/\//.match(data) Language["C#"]