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
master
Nick Treleaven 2007-02-14 17:35:54 +00:00
parent ddaeef09fe
commit c909127a56
2 changed files with 9 additions and 3 deletions

View File

@ -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 <nick.treleaven@btinternet.com>

View File

@ -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;
}