pub fn generate_language(
lang: &str,
config: &GrammarConfig,
) -> Result<Language, LoadingError>
Expand description
Generate a tree-sitter language from a language string.
This is a dispatch method that will attempt to load a statically linked grammar, and then fall back to loading the dynamic library for the grammar. If the user specifies an override for the dynamic library then that will be prioritized first.