mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Reject Ace modes that are lacking a mode
This commit is contained in:
@@ -271,7 +271,7 @@ module Linguist
|
||||
#
|
||||
# Returns an Array of Languages.
|
||||
def self.ace_modes
|
||||
@ace_modes ||= all.select(&:ace_mode).sort_by { |lang| lang.name.downcase }
|
||||
@ace_modes ||= all.select(&:ace_mode).sort_by { |lang| lang.name.downcase }.reject { |h| h.ace_mode == 'none' }
|
||||
end
|
||||
|
||||
# Internal: Initialize a new Language
|
||||
|
||||
Reference in New Issue
Block a user