Bug 78812 - try / catch blocks are not parsed correctly
Summary: try / catch blocks are not parsed correctly
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: syntax (show other bugs)
Version: 3.0.2
Platform: RedHat Enterprise Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
: 83536 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-03-31 16:53 UTC by Edward Brocklesby
Modified: 2004-06-17 17:40 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

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