mirror of
https://github.com/neovim/neovim.git
synced 2025-09-19 17:58:18 +00:00
Fix warning: multi-line comment [-Wcomment] use :341,355s/: \zs.*/\=string(submatch(0))
This commit is contained in:
@@ -339,20 +339,20 @@ static void quote_cmd_arg(char *dest, size_t dest_remaining, const char *src)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Expected input/output:
|
// Expected input/output:
|
||||||
// input : hello"world
|
// input : 'hello"world'
|
||||||
// output: "hello\"world"
|
// output: '"hello\"world"'
|
||||||
// input : hello""world
|
// input : 'hello""world'
|
||||||
// output: "hello\"\"world"
|
// output: '"hello\"\"world"'
|
||||||
// input : hello\world
|
// input : 'hello\world'
|
||||||
// output: hello\world
|
// output: 'hello\world'
|
||||||
// input : hello\\world
|
// input : 'hello\\world'
|
||||||
// output: hello\\world
|
// output: 'hello\\world'
|
||||||
// input : hello\"world
|
// input : 'hello\"world'
|
||||||
// output: "hello\\\"world"
|
// output: '"hello\\\"world"'
|
||||||
// input : hello\\"world
|
// input : 'hello\\"world'
|
||||||
// output: "hello\\\\\"world"
|
// output: '"hello\\\\\"world"'
|
||||||
// input : hello world\
|
// input : 'hello world\'
|
||||||
// output: "hello world\\"
|
// output: '"hello world\\"'
|
||||||
|
|
||||||
assert(dest_remaining--);
|
assert(dest_remaining--);
|
||||||
*(dest++) = NUL;
|
*(dest++) = NUL;
|
||||||
|
Reference in New Issue
Block a user