Skip to main content

Module lang

Module lang 

Source
Expand description

Language detection by file extension.

Maps file extensions to supported language identifiers.

Functionsยง

language_for_extension
Returns the language identifier for the given file extension, or None if unsupported.
supported_languages
Returns a static slice of all supported language names based on compiled features.