Bug 82919

Summary: code folding problem when scripting bash scripts
Product: [Applications] kate Reporter: markus flaig <toskala>
Component: syntaxAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description markus flaig 2004-06-06 00:48:22 UTC
Version:           3.0.3 (using KDE 3.2.2, Gentoo)
Compiler:          gcc version 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7)
OS:                Linux (i686) release 2.6.5-gentoo-r1

hi there,
the problem with code folding occurs whenever i script a bash-script and create a function that contains several if-clauses. 

example script-code:

function_foo () {

	if [ -f /tmp/foo ]; then
		echo -e "hello foo!";
	else
		echo -e "no foo :(";
	fi

	if [ -f /tmp/bar ]; then
		echo -e "hello bar!";
	else
		echo -e "no bar :(";
	fi
}

so the problem now is, that i usually can fold each if-clause for itself, but somehow whenever i fold one of the if-clauses my whole function gets folded, what actually isnt what i want :)

i am not sure why it occurs and when, i just discovered that problem 2 times now on 2 different scripts i try to maintain. nothing really serious, just a little bit annoying.

cheerios,
markus
Comment 1 Jens Dagerbo 2004-06-07 02:18:04 UTC
Folding is performed by katepart. 

Reassigning.
Comment 2 Christoph Cullmann 2004-08-02 22:37:20 UTC
this seems to work in CVS version, will ship fixed with KDE 3.3