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;
|
exception_t exception;
|
||||||
boolean retry;
|
boolean retry;
|
||||||
|
|
||||||
|
contextual_fake_count = 0;
|
||||||
|
|
||||||
Assert (passCount < 3);
|
Assert (passCount < 3);
|
||||||
cppInit ((boolean) (passCount > 1), isLanguage (Lang_csharp));
|
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)
|
static void initializeCParser (const langType language)
|
||||||
{
|
{
|
||||||
contextual_fake_count = 0;
|
|
||||||
Lang_c = language;
|
Lang_c = language;
|
||||||
buildKeywordHash (language, 0);
|
buildKeywordHash (language, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void initializeCppParser (const langType language)
|
static void initializeCppParser (const langType language)
|
||||||
{
|
{
|
||||||
contextual_fake_count = 0;
|
|
||||||
Lang_cpp = language;
|
Lang_cpp = language;
|
||||||
buildKeywordHash (language, 1);
|
buildKeywordHash (language, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void initializeJavaParser (const langType language)
|
static void initializeJavaParser (const langType language)
|
||||||
{
|
{
|
||||||
contextual_fake_count = 0;
|
|
||||||
Lang_java = language;
|
Lang_java = language;
|
||||||
buildKeywordHash (language, 3);
|
buildKeywordHash (language, 3);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void initializeDParser (const langType language)
|
static void initializeDParser (const langType language)
|
||||||
{
|
{
|
||||||
contextual_fake_count = 0;
|
|
||||||
Lang_d = language;
|
Lang_d = language;
|
||||||
buildKeywordHash (language, 6);
|
buildKeywordHash (language, 6);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void initializeGLSLParser (const langType language)
|
static void initializeGLSLParser (const langType language)
|
||||||
{
|
{
|
||||||
contextual_fake_count = 0;
|
|
||||||
Lang_glsl = language;
|
Lang_glsl = language;
|
||||||
buildKeywordHash (language, 0); /* C keywords */
|
buildKeywordHash (language, 0); /* C keywords */
|
||||||
}
|
}
|
||||||
|
|
||||||
static void initializeFeriteParser (const langType language)
|
static void initializeFeriteParser (const langType language)
|
||||||
{
|
{
|
||||||
contextual_fake_count = 0;
|
|
||||||
Lang_ferite = language;
|
Lang_ferite = language;
|
||||||
buildKeywordHash (language, 1); /* C++ keywords */
|
buildKeywordHash (language, 1); /* C++ keywords */
|
||||||
}
|
}
|
||||||
|
|
||||||
static void initializeCsharpParser (const langType language)
|
static void initializeCsharpParser (const langType language)
|
||||||
{
|
{
|
||||||
contextual_fake_count = 0;
|
|
||||||
Lang_csharp = language;
|
Lang_csharp = language;
|
||||||
buildKeywordHash (language, 2);
|
buildKeywordHash (language, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void initializeValaParser (const langType language)
|
static void initializeValaParser (const langType language)
|
||||||
{
|
{
|
||||||
contextual_fake_count = 0;
|
|
||||||
Lang_vala = language;
|
Lang_vala = language;
|
||||||
buildKeywordHash (language, 5);
|
buildKeywordHash (language, 5);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user