Improvement to regain sync for certain cases of invalid C syntax. Fixes problem reported by Emil Rojas on 22 May 2002.
git-svn-id: svn://svn.code.sf.net/p/ctags/code/trunk@167 c5d04d22-be80-434c-894e-aa346cc9e8e8
This commit is contained in:
parent
bffc498811
commit
5aad2feadc
|
@ -0,0 +1,3 @@
|
|||
/* Demonstrates temporary bug caused by statement reinitialization */
|
||||
static wchar_t charset2uni[256] = {
|
||||
};
|
2
c.c
2
c.c
|
@ -1442,12 +1442,14 @@ static void processToken (tokenInfo *const token, statementInfo *const st)
|
|||
case KEYWORD_EXTERN:
|
||||
reinitStatement (st, FALSE);
|
||||
st->scope = SCOPE_EXTERN;
|
||||
st->declaration = DECL_BASE;
|
||||
break;
|
||||
|
||||
case KEYWORD_STATIC:
|
||||
reinitStatement (st, FALSE);
|
||||
if (! isLanguage (Lang_java))
|
||||
st->scope = SCOPE_STATIC;
|
||||
st->declaration = DECL_BASE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue