Bug 78812

Summary: try / catch blocks are not parsed correctly
Product: [Applications] kate Reporter: Edward Brocklesby <ejb>
Component: syntaxAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: franke.daniel
Priority: NOR    
Version: 3.0.2   
Target Milestone: ---   
Platform: RedHat Enterprise Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description Edward Brocklesby 2004-03-31 16:53:57 UTC
Version:           3.0.2 (using KDE KDE 3.2.1)
Installed from:    RedHat RPMs
OS:          Linux

A code block of the form:


void f() {
	try {
		f();
	}
	catch (...) {
	}
}

Is not parsed correctly - KDevelop thinks the second "}" ends the function block and does not parse anything after that properly.

Moving the "{" after "catch (...)" to the next line fixes the problem.
Comment 1 Jens Dagerbo 2004-03-31 18:22:53 UTC
"KDevelop" in this case means the kate editorpart. The syntax highlighting scheme has a bug here. 

Reassigning.
Comment 2 Dominik Haumann 2004-03-31 20:47:36 UTC
CVS commit by dhaumann: 

Fix for 78812. Thanks for the BR.
CCMAIL: 78812-done@bugs.kde.org


  M +2 -2      ansic89.xml   1.3
  M +2 -2      c.xml   1.38
  M +2 -2      cpp.xml   1.60
  M +2 -2      cs.xml   1.15
  M +2 -2      java.xml   1.27
  M +2 -6      povray.xml   1.2
  M +2 -2      sieve.xml   1.5



Comment 3 Dominik Haumann 2004-06-17 17:40:52 UTC
*** Bug 83536 has been marked as a duplicate of this bug. ***