From e58f268258cdd566a6645d027314c6421befdb1e Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Fri, 20 Jul 2012 15:42:21 -0500 Subject: [PATCH] Associate .module with drupal php --- lib/linguist/blob_helper.rb | 27 --------------------------- lib/linguist/languages.yml | 1 + 2 files changed, 1 insertion(+), 27 deletions(-) diff --git a/lib/linguist/blob_helper.rb b/lib/linguist/blob_helper.rb index 84a9bdaa..cb5cddfc 100644 --- a/lib/linguist/blob_helper.rb +++ b/lib/linguist/blob_helper.rb @@ -136,13 +136,6 @@ module Linguist ['.png', '.jpg', '.jpeg', '.gif'].include?(extname) end - # Public: Is the blob a possible drupal php file? - # - # Return true or false - def drupal_extname? - ['.module', '.install', '.test', '.inc'].include?(extname) - end - # Public: Is the blob likely to have a shebang? # # Return true or false @@ -430,9 +423,6 @@ module Linguist # See if there is a Language for the extension pathname.language || - # Look for idioms in first line - first_line_language || - # Try to detect Language from shebang line shebang_language end @@ -458,23 +448,6 @@ module Linguist end end - # Internal: Guess language from the first line. - # - # Look for leading "