mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
More language docs
This commit is contained in:
@@ -3,6 +3,10 @@ require 'linguist/lexer'
|
||||
require 'yaml'
|
||||
|
||||
module Linguist
|
||||
# Langage names that are recognizable by GitHub. Defined languages
|
||||
# can be highlighted, searched and listed under the Top Languages page.
|
||||
#
|
||||
# Langages are defined in `lib/linguist/langages.yml`.
|
||||
class Language
|
||||
@languages = []
|
||||
@name_index = {}
|
||||
@@ -62,7 +66,7 @@ module Linguist
|
||||
language
|
||||
end
|
||||
|
||||
# Public: Get all Languages
|
||||
# Internal: Get all Languages
|
||||
#
|
||||
# Returns an Array of Languages
|
||||
def self.all
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
# lexer - An explicit lexer String (defaults to name.downcase)
|
||||
# aliases - An Array of additional aliases (implicitly
|
||||
# includes name.downcase)
|
||||
# ext - An Array of associated extensions
|
||||
# extension - An Array of associated extensions
|
||||
# searchable - Boolean flag to enable searching (defaults to true)
|
||||
# search_term - Deprecated: Some langauges maybe indexed under a
|
||||
# different alias. Avoid defining new exceptions.
|
||||
|
||||
Reference in New Issue
Block a user