rustdoc-search: allow ::
and ::
This restriction made sense back when spaces separated function parameters, but now that they separate path components, there's no real ambiguity any more. Additionally, the Rust language allows it.
This commit is contained in:
parent
abe34e9ab1
commit
c28de27a73
3 changed files with 61 additions and 25 deletions
|
@ -15,6 +15,54 @@ const PARSED = [
|
|||
userQuery: "a::b",
|
||||
error: null,
|
||||
},
|
||||
{
|
||||
query: "a:: a",
|
||||
elems: [{
|
||||
name: "a:: a",
|
||||
fullPath: ["a", "a"],
|
||||
pathWithoutLast: ["a"],
|
||||
pathLast: "a",
|
||||
generics: [],
|
||||
typeFilter: -1,
|
||||
}],
|
||||
foundElems: 1,
|
||||
original: 'a:: a',
|
||||
returned: [],
|
||||
userQuery: 'a:: a',
|
||||
error: null,
|
||||
},
|
||||
{
|
||||
query: "a ::a",
|
||||
elems: [{
|
||||
name: "a ::a",
|
||||
fullPath: ["a", "a"],
|
||||
pathWithoutLast: ["a"],
|
||||
pathLast: "a",
|
||||
generics: [],
|
||||
typeFilter: -1,
|
||||
}],
|
||||
foundElems: 1,
|
||||
original: 'a ::a',
|
||||
returned: [],
|
||||
userQuery: 'a ::a',
|
||||
error: null,
|
||||
},
|
||||
{
|
||||
query: "a :: a",
|
||||
elems: [{
|
||||
name: "a :: a",
|
||||
fullPath: ["a", "a"],
|
||||
pathWithoutLast: ["a"],
|
||||
pathLast: "a",
|
||||
generics: [],
|
||||
typeFilter: -1,
|
||||
}],
|
||||
foundElems: 1,
|
||||
original: 'a :: a',
|
||||
returned: [],
|
||||
userQuery: 'a :: a',
|
||||
error: null,
|
||||
},
|
||||
{
|
||||
query: 'A::B,C',
|
||||
elems: [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue