db8c7a1cc0
When chainlint.sed detects a broken &&-chain, it places an ?!AMP?! 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 ?!AMP?! annotation to the end of the line 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>
20 lines
210 B
Plaintext
20 lines
210 B
Plaintext
(
|
|
case "$x" in
|
|
x) foo ;;
|
|
*) bar ;;
|
|
esac &&
|
|
foobar
|
|
>) &&
|
|
(
|
|
case "$x" in
|
|
x) foo ;;
|
|
*) bar ;;
|
|
esac ?!AMP?!
|
|
foobar
|
|
>) &&
|
|
(
|
|
case "$x" in 1) true;; esac &&
|
|
case "$y" in 2) false;; esac ?!AMP?!
|
|
foobar
|
|
>)
|