feat: add expand/shrink_selection and select_next/prev_sibling commands
This commit is contained in:
		
							parent
							
								
									6735d52090
								
							
						
					
					
						commit
						b0a1b80acb
					
				
					 4 changed files with 176 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -184,3 +184,9 @@ pub fn highlights_at_point(self: *const Self, ctx: anytype, comptime cb: CallBac
 | 
			
		|||
    }
 | 
			
		||||
    return;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
pub fn node_at_point_range(self: *const Self, range: Range) error{Stop}!treez.Node {
 | 
			
		||||
    const tree = self.tree orelse return error.Stop;
 | 
			
		||||
    const root_node = tree.getRootNode();
 | 
			
		||||
    return treez.Node.externs.ts_node_descendant_for_point_range(root_node, range.start_point, range.end_point);
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue