feat: render ast nodes in inspector view even when there are no highlights

This commit is contained in:
CJ van den Berg 2025-09-29 21:00:00 +02:00
parent ce6d16b656
commit 27c01b940a
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
3 changed files with 53 additions and 28 deletions

View file

@ -187,7 +187,7 @@ pub const CurSel = struct {
};
}
fn selection_from_node(node: syntax.Node, root: Buffer.Root, metrics: Buffer.Metrics) error{NotFound}!Selection {
pub fn selection_from_node(node: syntax.Node, root: Buffer.Root, metrics: Buffer.Metrics) error{NotFound}!Selection {
return selection_from_range(node.getRange(), root, metrics);
}