Skip to main content

Module lang

Module lang 

Source
Expand description

Language registry for code-symbol indexing.

Maps file extensions to a Lang and lazily builds the per-language TagsConfiguration (from each grammar’s bundled tags.scm). Building a tags configuration compiles a tree-sitter query, so the configs are cached in a process-wide OnceLock and shared across every parsed file.

Enums§

Lang
A source language we can extract symbols from.

Functions§

config
The compiled tags configuration for a language, if available.
detect
Resolve a path’s extension to a Lang, or None if unsupported.