tartrazine/internal
Luke Francl b248b21349 Expose LanguageInfo with all Linguist data
As discussed in https://github.com/go-enry/go-enry/issues/54, this provides an
API for accessing a LanguageInfo struct which is populated with all the data
from the Linguist YAML source file. Functions are provided to access the
LanguageInfo by name or ID.

The other top-level functions like GetLanguageExtensions, GetLanguageGroup, etc.
could in principle be implemented using this structure, which would simplify the
code generation. But that would be a big change so I didn't do any of that.
Perhaps in the next major version something like that would make sense.
2021-10-11 13:32:29 -07:00
..
code-generator Expose LanguageInfo with all Linguist data 2021-10-11 13:32:29 -07:00
tokenizer tokenizer: hide flex-based impl, avoid build failures on win 2020-03-19 19:58:48 +01:00