Skip to main content

Module lang_registry

Module lang_registry 

Source
Expand description

Single source of truth for supported language extensions.

All extension-to-language dispatch tables across the codebase should derive from this registry to prevent mismatches.

Structs§

ExtEntry
Metadata for a supported file extension.

Functions§

all_extensions
Return all supported extensions.
for_extension
Look up an extension entry by lowercase extension string.
import_extensions
Return all extensions that support import analysis.
language_id
Return the LSP language identifier for an extension.
supports_imports
Whether import graph analysis is supported for this extension.
supports_imports_for_path
Whether import graph analysis is supported for a file path.
supports_symbols
Whether tree-sitter symbol parsing is supported for this extension. All registered extensions support symbols.