We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49e5e4e commit fd4a093Copy full SHA for fd4a093
src/tools/jsondocck/src/main.rs
@@ -154,6 +154,7 @@ impl CommandKind {
154
static LINE_PATTERN: LazyLock<Regex> = LazyLock::new(|| {
155
RegexBuilder::new(
156
r#"
157
+ ^\s*
158
//@\s+
159
(?P<negated>!?)
160
(?P<cmd>[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*)
tests/rustdoc-json/fns/return_type_alias.rs
@@ -1,6 +1,6 @@
1
// Regression test for <https://github.com/rust-lang/rust/issues/104851>
2
3
-///@ set foo = "$.index[?(@.name=='Foo')].id"
+//@ set foo = "$.index[?(@.name=='Foo')].id"
4
pub type Foo = i32;
5
6
//@ is "$.index[?(@.name=='demo')].inner.function.sig.output.resolved_path.id" $foo
0 commit comments