Moving linguist detection into rake task and ignoring diff for now.

This commit is contained in:
Arfon Smith
2014-07-22 15:33:58 -05:00
parent 8d524d618e
commit 84ea710d42
2 changed files with 11 additions and 7 deletions

View File

@@ -42,7 +42,7 @@ module Linguist
# Returns an array of Languages or []
def self.disambiguate_c(data, languages)
matches = []
matches << Language["Objective-C"] if data.include?("i")
matches << Language["Objective-C"] if data.include?("@interface")
matches << Language["C++"] if data.include?("#include <cstdint>")
matches
end