difft::parse::tree_sitter_parser

Function tree_highlights

Source
fn tree_highlights(
    tree: &Tree,
    src: &str,
    config: &TreeSitterConfig,
) -> HighlightedNodeIds
Expand description

Calculate which tree-sitter node IDs should have which syntax highlighting.