This commit is contained in:
Máximo Cuadros
2016-07-13 22:21:18 +02:00
parent 180da1c6df
commit bead3a606f
9 changed files with 123 additions and 76 deletions

View File

@ -15,9 +15,9 @@ func GetLanguageByContent(filename string, content []byte) (lang string, safe bo
return GetLanguageByExtension(filename)
}
type langMatcher func([]byte) (string, bool)
type languageMatcher func([]byte) (string, bool)
var matchers = map[string]langMatcher{
var matchers = map[string]languageMatcher{
".cl": clExtLanguage,
".cls": clsExtLanguage,
".m": mExtLanguage,