GNU bug report logs -
#11946
syntax highlighting error in sh-mode
Previous Next
Full log
Message #14 received at 11946-done <at> debbugs.gnu.org (full text, mbox):
Hi Stefan,
Stefan Monnier <monnier <at> IRO.UMontreal.CA> writes:
> Thanks, installed the patch below in trunk to fix this problem.
Thanks, it fix the problem but not fully; when I edit in the buffer the
coloration is ok, but if I kill buffer and reopen it the line:
VERSION[${#VERSION[*]}]=$i
is Ok, but this one:
LEN=${#BIN[@]}
is not now (i.e colorized as a comment after #)
and then if I edit this line
LEN=${#BIN[@]}
the one above:
VERSION[${#VERSION[*]}]=$i
look as a comment after #.
If I edit it (e.g remove '}' and put it back), the color becomes correct
(i.e no comment color)
Here the full snippet of code if you want to reproduce:
--8<---------------cut here---------------start------------->8---
LEN=${#BIN[@]}
N=1
declare -a VERSION
for i in $(ls "$PREFIX/sbin") ; do
echo -e $N')' $i
VERSION[${#VERSION[*]}]=$i
N=$(($N + 1))
done
--8<---------------cut here---------------end--------------->8---
I can send you the full file if you want.
--
Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997
This bug report was last modified 12 years and 313 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.