~ubuntu-branches/ubuntu/jaunty/geany/jaunty

« back to all changes in this revision

Viewing changes to tagmanager/c.c

  • Committer: Bazaar Package Importer
  • Author(s): Lionel Le Folgoc
  • Date: 2007-02-25 21:12:13 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070225211213-jk4d4vxtgji0rj74
Tags: 0.10.2-0ubuntu1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2220
2220
    boolean isEnd;
2221
2221
 
2222
2222
    if (isType (token, TOKEN_SEMICOLON))
2223
 
        isEnd = TRUE;
 
2223
                isEnd = TRUE;
2224
2224
    else if (isType (token, TOKEN_BRACE_CLOSE))
2225
 
        isEnd = (boolean) (isLanguage (Lang_java) ||
2226
 
                          ! isContextualStatement (st));
 
2225
                /* Java, D, C# do not require semicolons to end a block. Neither do C++
 
2226
                 * namespaces. All other blocks require a semicolon to terminate them.
 
2227
                 */
 
2228
                isEnd = (boolean) (isLanguage (Lang_java) || isLanguage (Lang_d) ||
 
2229
                                ! isContextualStatement (st));
2227
2230
    else
2228
 
        isEnd = FALSE;
 
2231
                isEnd = FALSE;
2229
2232
 
2230
2233
    return isEnd;
2231
2234
}