Bug 82919 - code folding problem when scripting bash scripts
Summary: code folding problem when scripting bash scripts
Status: RESOLVED WORKSFORME
Alias: None
Product: kate
Classification: Applications
Component: syntax (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-06 00:48 UTC by markus flaig
Modified: 2004-08-02 22:37 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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