things are working: time to piggyback off the highlighter's parser

This commit is contained in:
Patrick Thomson 2020-10-21 14:54:47 -04:00
parent 0dfe89f353
commit 363a0ce4fc
3 changed files with 25 additions and 6 deletions

View file

@ -60,6 +60,7 @@ pub fn query_files_at_paths(
)?;
results.push(CaptureInfo {
name: capture_name.to_string(),
position: capture.node.start_position(),
});
}
} else {
@ -86,6 +87,7 @@ pub fn query_files_at_paths(
}
results.push(CaptureInfo {
name: capture_name.to_string(),
position: capture.node.start_position(),
});
}
}