Module resolver

Module resolver 

Source

Structs§

HeuristicRule
A HeuristicRule represents a check for a Language based on the content of a file.
Language
A Language exposes the properties of a language definition.

Enums§

Scope
A Scope represents the type of a Language.

Functions§

resolve_language
Resolve the Language of the given file. It will try to resolve the language by the filename, extension, shebang and content. The most likely language will be returned.
resolve_language_by_content
Used to resolve all possible Languages by the file contents.
resolve_languages_by_extension
Used to resolve all possible Languages by the given extension.
resolve_languages_by_filename
Used to resolve all possible Languages by the given filename.
resolve_languages_by_shebang
Used to resolve all possible Languages by the file contents.