mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 17:51:57 +00:00
scip-syntax: uses .starts_with to check reference capture (#64081)
Sorry missed this during the review. No need to allow `rEfErEnCe` as the
capture name. Noticed this while checking the samply profile and seeing
string allocations (gets us back 20ms on spring-framework 🎉)
## Test plan
Covered by existing tests
This commit is contained in:
parent
1069817b5b
commit
a4c7e9be9a
@ -619,7 +619,7 @@ impl<'a> LocalResolver<'a> {
|
||||
is_def_ref,
|
||||
node: capture.node,
|
||||
})
|
||||
} else if capture_name.eq_ignore_ascii_case("reference") {
|
||||
} else if capture_name.starts_with("reference") {
|
||||
let offset = capture.node.start_byte();
|
||||
|
||||
if skip_references_at_offsets.contains(&offset) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user