mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Add Language#search_term
This commit is contained in:
@@ -70,6 +70,14 @@ module Linguist
|
||||
lexer_name == default_lexer_name
|
||||
end
|
||||
|
||||
def search_term
|
||||
if name == 'Text'
|
||||
nil
|
||||
else
|
||||
lexer_name
|
||||
end
|
||||
end
|
||||
|
||||
def popular?
|
||||
@popular
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user