Function difft::parse::tree_sitter_parser::syntax_from_cursor
source · [−]fn syntax_from_cursor<'a>(
arena: &'a Arena<Syntax<'a>>,
src: &str,
nl_pos: &LinePositions,
cursor: &mut TreeCursor<'_>,
error_count: &mut usize,
config: &TreeSitterConfig,
highlights: &HighlightedNodeIds,
subtrees: &HashMap<usize, (Tree, TreeSitterConfig, HighlightedNodeIds), BuildHasherDefault<FxHasher>>,
ignore_comments: bool
) -> Option<&'a Syntax<'a>>
Expand description
Convert the tree-sitter node at cursor
to a difftastic syntax
node.