diff options
| author | Michael Howell <michael@notriddle.com> | 2023-11-29 10:11:37 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2023-11-29 11:02:50 -0700 |
| commit | c28de27a73521c0814e771120bd0aeecde67d93b (patch) | |
| tree | f38e17227278e416ed904863f65c45ae14638c69 /tests/rustdoc-js-std/parser-paths.js | |
| parent | abe34e9ab14c0a194152b4f9acc3dcbb000f3e98 (diff) | |
| download | rust-c28de27a73521c0814e771120bd0aeecde67d93b.tar.gz rust-c28de27a73521c0814e771120bd0aeecde67d93b.zip | |
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.
Diffstat (limited to 'tests/rustdoc-js-std/parser-paths.js')
| -rw-r--r-- | tests/rustdoc-js-std/parser-paths.js | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/tests/rustdoc-js-std/parser-paths.js b/tests/rustdoc-js-std/parser-paths.js index 8d4dedf3f46..774e5d028cc 100644 --- a/tests/rustdoc-js-std/parser-paths.js +++ b/tests/rustdoc-js-std/parser-paths.js @@ -16,6 +16,54 @@ const PARSED = [ 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: [ { |
