Skip to main content

Crate panproto_grammars

Crate panproto_grammars 

Source
Expand description

Pre-compiled tree-sitter grammars for panproto.

This crate bundles up to 248 tree-sitter grammars, compiled from vendored C sources. Each grammar is gated behind a lang-{name} feature flag. Group features like group-core, group-web, group-all etc. enable sets of languages at once.

The default feature is group-core (GitHub’s top 10 languages + Rust).

Structs§

Grammar
A compiled tree-sitter grammar with its metadata.

Functions§

extension_to_language
Map a file extension to its grammar name.
grammar_count
Return the number of enabled grammars.
grammars
Return all grammars enabled by feature flags.
has_grammar
Check if a specific grammar is available (enabled by feature flags).