Skip to main content

Module languages

Module languages 

Source
Expand description

Language registry mapping file extensions to tree-sitter grammars.

Each supported language has a grammar and a tree-sitter query that extracts function, class, and method definitions. Compiled queries are cached so that repeated calls for the same extension are free.

Structs§

LangConfig
Configuration for a supported source language.

Functions§

config_for_extension
Look up the language configuration for a file extension.