lib/linguist/heuristics.rb in github-linguist-4.8.3 vs lib/linguist/heuristics.rb in github-linguist-4.8.4

- old
+ new

@@ -84,9 +84,17 @@ elsif /^\s*(# |include|require)\b/.match(data) Language["BitBake"] end end + disambiguate ".builds" do |data| + if /^(\s*)(<Project|<Import|<Property|<?xml|xmlns)/i.match(data) + Language["XML"] + else + Language["Text"] + end + end + disambiguate ".ch" do |data| if /^\s*#\s*(if|ifdef|ifndef|define|command|xcommand|translate|xtranslate|include|pragma|undef)\b/i.match(data) Language["xBase"] end end