Start detecting CSS

This commit is contained in:
Ted Nyman
2013-07-30 13:30:39 -07:00
parent 838fbc5626
commit 96e8a5d2cc
4 changed files with 95 additions and 41 deletions

View File

@@ -73,8 +73,8 @@ module Linguist
# Skip vendored or generated blobs
next if blob.vendored? || blob.generated? || blob.language.nil?
# Only include programming languages
if blob.language.type == :programming
# Only include programming languages and acceptable markup languages
if blob.language.type == :programming || Language.detectable_markup.include?(blob.language.name)
@sizes[blob.language.group] += blob.size
end
end