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§

CallConfig
Configuration for extracting function calls from a language.
LangConfig
Configuration for a supported source language.

Functions§

call_query_for_extension
Look up the call-extraction query for a file extension.
config_for_extension
Look up the language configuration for a file extension.