Version: (using KDE KDE 3.4.1) Installed from: Gentoo Packages Compiler: gcc version 3.3.6 (Gentoo 3.3.6, ssp-3.3.6-1.0, pie-8.7.8) OS: Linux See the following code snipped kate has problem after the second call to bc. Syntax Highlighting works well if I use `...` instead of $(...) #!/bin/sh # # no problem # PERCENT1=`bc <<EOF scale=5 4.0 / 3 EOF` echo "perc1=${PERCENT1}" # second attempt PERCENT2=$(bc <<EOF scale=5 5.0 / 3 EOF) # no colour from here # echo "perc2=${PERCENT2}" exit 0
Wilbert Beehrendsen, maintainer of the bash highlight does not appear to have a bugzilla account. his email is wilbert at kde nl.
emailed him at 1st of Nov but didn#t got any answer until now :-(
Confirming this happens in both KDE 3.5.8 and KDE 4. Bash itself is happy with these constructs, so the highlighting is wrong.
I am very sorry this took so long. Yes I have a bugzilla account.... and right now I will look into this bug.
SVN commit 754823 by berendsen: BUG: 114675 make it so that the heredoc-delimiter ends on a word boundary (\b) instead on an EOL. This way an additional ) or ` is not missed. It is still not perfect, because it now allows for other texts after the delimiter. But bigger changes are need- ed to defeat that... M +5 -5 bash.xml WebSVN link: http://websvn.kde.org/?view=rev&revision=754823