fbd992b61b
When chainlint.sed detects commands separated by a semicolon rather than by `&&`, it places a ?!SEMI?! annotation at the beginning of the line. However, this is an unusual location for programmers accustomed to error messages (from compilers, for instance) indicating the exact point of the problem. Therefore, relocate the ?!SEMI?! annotation to the location of the semicolon in order to better direct the programmer's attention to the source of the problem. Signed-off-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
10 lines
144 B
Plaintext
10 lines
144 B
Plaintext
(foo && bar) &&
|
|
(foo && bar) |
|
|
(foo && bar) >baz &&
|
|
|
|
(foo; ?!SEMI?! bar) &&
|
|
(foo; ?!SEMI?! bar) |
|
|
(foo; ?!SEMI?! bar) >baz &&
|
|
|
|
(foo "bar; baz")
|