From c909127a56c2072b5ae5b812092f5cb8e49b3174 Mon Sep 17 00:00:00 2001 From: Nick Treleaven Date: Wed, 14 Feb 2007 17:35:54 +0000 Subject: [PATCH] Fix wrong D function return type after a class definition. git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1280 ea778897-0a13-0410-b9d1-a72fbfd435f5 --- ChangeLog | 2 ++ tagmanager/c.c | 10 +++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index c549993f..458a9720 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,8 @@ Redraw instead of scrolling in ScintillaGTK::ScrollText if there is an existing update region. Revert earlier ScintillaGTK::ExposeTextThis change. + * tagmanager/c.c: + Fix wrong D function return type after a class definition. 2007-02-13 Nick Treleaven diff --git a/tagmanager/c.c b/tagmanager/c.c index c340d483..8790e9a0 100644 --- a/tagmanager/c.c +++ b/tagmanager/c.c @@ -2309,11 +2309,15 @@ static boolean isStatementEnd (const statementInfo *const st) boolean isEnd; if (isType (token, TOKEN_SEMICOLON)) - isEnd = TRUE; + isEnd = TRUE; else if (isType (token, TOKEN_BRACE_CLOSE)) - isEnd = (boolean) (isLanguage (Lang_java) || ! isContextualStatement (st)); + /* Java, D, C# do not require semicolons to end a block. Neither do C++ + * namespaces. All other blocks require a semicolon to terminate them. + */ + isEnd = (boolean) (isLanguage (Lang_java) || isLanguage (Lang_d) || + ! isContextualStatement (st)); else - isEnd = FALSE; + isEnd = FALSE; return isEnd; }