in pkg/comments/config.go [96:114]
func initLanguageCommentStyles(languages map[string]Language) {
if len(languages) == 0 {
return
}
for _, lang := range languages {
for _, extension := range lang.Extensions {
if lang.CommentStyleID == "" {
continue
}
commentStyles[extension] = comments[lang.CommentStyleID]
}
for _, filename := range lang.Filenames {
if lang.CommentStyleID == "" {
continue
}
commentStyles[filename] = comments[lang.CommentStyleID]
}
}
}