Skip to main content

Module languages

Module languages 

Source
Expand description

One statically linked registry for native filenames, shebangs and injections. Queries are vendored from Helix under MPL-2.0; no runtime grammar downloads.

Structs§

LanguageSpec

Enums§

LanguageId

Functions§

detect
Exact basename wins over extension, which wins over the bounded shebang. Non-UTF-8 filename bytes never become a lossy path used for I/O.
for_extension
for_name
for_shebang
interpreter_of
specifications
A registry walk for compatibility checks, not another detection vocabulary.