mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-11-10 13:32:24 +00:00
eb043e80a8
The Linguist-defined language IDs are important to our use case because they are used as database identifiers. This adds a new generator to extract the language IDs into a map and uses that to implement GetLanguageID. Because one language has the ID 0, there is no way to tell if a language name is found or not. If desired, we could add this by returning (string, bool) from GetLanguageID. But none of the other functions that take language names do this, so I didn't want to introduce it here. |
||
---|---|---|
.. | ||
alias.go.tmpl | ||
colors.go.tmpl | ||
commit.go.tmpl | ||
content.go.tmpl | ||
documentation.go.tmpl | ||
extension.go.tmpl | ||
filename.go.tmpl | ||
frequencies.go.tmpl | ||
groups.go.tmpl | ||
header.go.tmpl | ||
id.go.tmpl | ||
interpreter.go.tmpl | ||
mimeType.go.tmpl | ||
type.go.tmpl | ||
vendor.go.tmpl |