Fix suffix of anonymous symbols (structs, enums, ...) in the C parser
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5563 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
57d00f48d0
commit
a2d04123bb
@ -3022,6 +3022,8 @@ static boolean findCTags (const unsigned int passCount)
|
||||
exception_t exception;
|
||||
boolean retry;
|
||||
|
||||
contextual_fake_count = 0;
|
||||
|
||||
Assert (passCount < 3);
|
||||
cppInit ((boolean) (passCount > 1), isLanguage (Lang_csharp));
|
||||
|
||||
@ -3060,56 +3062,48 @@ static void buildKeywordHash (const langType language, unsigned int idx)
|
||||
|
||||
static void initializeCParser (const langType language)
|
||||
{
|
||||
contextual_fake_count = 0;
|
||||
Lang_c = language;
|
||||
buildKeywordHash (language, 0);
|
||||
}
|
||||
|
||||
static void initializeCppParser (const langType language)
|
||||
{
|
||||
contextual_fake_count = 0;
|
||||
Lang_cpp = language;
|
||||
buildKeywordHash (language, 1);
|
||||
}
|
||||
|
||||
static void initializeJavaParser (const langType language)
|
||||
{
|
||||
contextual_fake_count = 0;
|
||||
Lang_java = language;
|
||||
buildKeywordHash (language, 3);
|
||||
}
|
||||
|
||||
static void initializeDParser (const langType language)
|
||||
{
|
||||
contextual_fake_count = 0;
|
||||
Lang_d = language;
|
||||
buildKeywordHash (language, 6);
|
||||
}
|
||||
|
||||
static void initializeGLSLParser (const langType language)
|
||||
{
|
||||
contextual_fake_count = 0;
|
||||
Lang_glsl = language;
|
||||
buildKeywordHash (language, 0); /* C keywords */
|
||||
}
|
||||
|
||||
static void initializeFeriteParser (const langType language)
|
||||
{
|
||||
contextual_fake_count = 0;
|
||||
Lang_ferite = language;
|
||||
buildKeywordHash (language, 1); /* C++ keywords */
|
||||
}
|
||||
|
||||
static void initializeCsharpParser (const langType language)
|
||||
{
|
||||
contextual_fake_count = 0;
|
||||
Lang_csharp = language;
|
||||
buildKeywordHash (language, 2);
|
||||
}
|
||||
|
||||
static void initializeValaParser (const langType language)
|
||||
{
|
||||
contextual_fake_count = 0;
|
||||
Lang_vala = language;
|
||||
buildKeywordHash (language, 5);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user