about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-errors.js
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2023-11-29 10:54:49 -0700
committerMichael Howell <michael@notriddle.com>2023-11-29 11:02:56 -0700
commit930cba8061dca5988a58b4e74774489e1b129184 (patch)
tree5345a7613db10b3357b54731f67650723f5fd697 /tests/rustdoc-js-std/parser-errors.js
parent93f17117ed50a972bfabea86762241cd9ac5ccbd (diff)
downloadrust-930cba8061dca5988a58b4e74774489e1b129184.tar.gz
rust-930cba8061dca5988a58b4e74774489e1b129184.zip
rustdoc-search: replace TAB/NL/LF with SP first
This way, most of the parsing code doesn't need to be designed to handle
it, since they should always be treated exactly the same anyhow.
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
-rw-r--r--tests/rustdoc-js-std/parser-errors.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/rustdoc-js-std/parser-errors.js b/tests/rustdoc-js-std/parser-errors.js
index cb1654c0fb0..f9f9c4f4de8 100644
--- a/tests/rustdoc-js-std/parser-errors.js
+++ b/tests/rustdoc-js-std/parser-errors.js
@@ -162,6 +162,15 @@ const PARSED = [
         error: "Unexpected `:: ::`",
     },
     {
+        query: "a::\t::b",
+        elems: [],
+        foundElems: 0,
+        original: "a:: ::b",
+        returned: [],
+        userQuery: "a:: ::b",
+        error: "Unexpected `:: ::`",
+    },
+    {
         query: "a::b::",
         elems: [],
         foundElems: 0,