mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
jsondocck: Require command is at start of line
This commit is contained in:
@@ -154,6 +154,7 @@ fn parse<'a>(command_name: &str, negated: bool, args: &'a [String]) -> Option<(S
|
||||
static LINE_PATTERN: LazyLock<Regex> = LazyLock::new(|| {
|
||||
RegexBuilder::new(
|
||||
r#"
|
||||
^\s*
|
||||
//@\s+
|
||||
(?P<negated>!?)
|
||||
(?P<cmd>[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Regression test for <https://github.com/rust-lang/rust/issues/104851>
|
||||
|
||||
///@ set foo = "$.index[?(@.name=='Foo')].id"
|
||||
//@ set foo = "$.index[?(@.name=='Foo')].id"
|
||||
pub type Foo = i32;
|
||||
|
||||
//@ is "$.index[?(@.name=='demo')].inner.function.sig.output.resolved_path.id" $foo
|
||||
|
||||
Reference in New Issue
Block a user