chainlint.sed: improve ?!AMP?! placement accuracy

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>
This commit is contained in:
Eric Sunshine
2021-12-13 01:30:50 -05:00
committed by Junio C Hamano
parent f30c1d5eb1
commit db8c7a1cc0
23 changed files with 38 additions and 38 deletions

View File

@ -3,10 +3,10 @@
then
while true
do
?!AMP?! echo "pop"
echo "pop" ?!AMP?!
echo "glup"
?!AMP?! done
done ?!AMP?!
foo
?!AMP?! fi
fi ?!AMP?!
bar
>)