Toy example

This commit is contained in:
Arfon Smith
2014-07-22 14:42:15 -05:00
parent 9fa34ab1fe
commit 8d524d618e

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?("@interface")
matches << Language["Objective-C"] if data.include?("i")
matches << Language["C++"] if data.include?("#include <cstdint>")
matches
end