Skip to main content

Module lang

Module lang 

Source
Expand description

The languages bezel can highlight: a row per grammar — the fence aliases it answers to, the tree-sitter grammar, and its highlights query. Each row is behind the feature of the same name.

Structs§

Compiled
A grammar’s query, compiled and configured. Held by a Session, never shared between two.
Lang

Enums§

Grammar
Where a grammar’s parse tables come from.

Constants§

NAMES
Every capture name kind_of answers to.

Functions§

kind_of
Map a tree-sitter highlight capture name onto the bezel vocabulary.
resolve
Find the language a fence tag names, where this build carries a grammar for it. crate::registry::of_tag answers for a tag it can only name.