difft::parse::tree_sitter_parser

Function atom_from_cursor

Source
fn atom_from_cursor<'a>(
    arena: &'a Arena<Syntax<'a>>,
    src: &str,
    nl_pos: &LinePositions,
    cursor: &mut TreeCursor<'_>,
    highlights: &HighlightedNodeIds,
    ignore_comments: bool,
) -> Option<&'a Syntax<'a>>
Expand description

Convert the tree-sitter node at cursor to a difftastic atom.