code from domain

This commit is contained in:
Máximo Cuadros
2016-07-13 19:05:09 +02:00
commit 6bc52531e7
7 changed files with 1524 additions and 0 deletions

41
auxiliary.go Normal file
View File

@ -0,0 +1,41 @@
package slinguist
var AuxiliaryLanguages = map[string]bool{
"Other": true,
"XML": true,
"YAML": true,
"TOML": true,
"INI": true,
"JSON": true,
"TeX": true,
"Public Key": true,
"AsciiDoc": true,
"AGS Script": true,
"VimL": true,
"Diff": true,
"CMake": true,
"fish": true,
"Awk": true,
"Graphviz (DOT)": true,
"Markdown": true,
"desktop": true,
"XSLT": true,
"SQL": true,
"RMarkdown": true,
"IRC log": true,
"reStructuredText": true,
"Twig": true,
"CSS": true,
"Batchfile": true,
"Text": true,
"HTML+ERB": true,
"HTML": true,
"Gettext Catalog": true,
"Smarty": true,
"Raw token data": true,
}
func IsAuxiliaryLanguage(lang string) bool {
_, ok := AuxiliaryLanguages[lang]
return ok
}