Quick hack to parse contents of D extern{} and version{} blocks.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4408 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2009-11-06 17:24:31 +00:00
parent 3a45a2c70c
commit faa7a2eb4f
2 changed files with 5 additions and 1 deletions

View File

@ -6,6 +6,8 @@
(Ignore some more D keywords). (Ignore some more D keywords).
* tagmanager/c.c: * tagmanager/c.c:
Fix creating D interface tags properly. Fix creating D interface tags properly.
* tagmanager/c.c:
Parse contents of D extern{} and version{} blocks.
2009-11-05 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de> 2009-11-05 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>

View File

@ -394,7 +394,8 @@ static const keywordDesc KeywordTable [] = {
{ "event", KEYWORD_EVENT, { 0, 0, 1, 0, 1, 0, 0 } }, { "event", KEYWORD_EVENT, { 0, 0, 1, 0, 1, 0, 0 } },
{ "explicit", KEYWORD_EXPLICIT, { 0, 1, 1, 0, 0, 0, 1 } }, { "explicit", KEYWORD_EXPLICIT, { 0, 1, 1, 0, 0, 0, 1 } },
{ "extends", KEYWORD_EXTENDS, { 0, 0, 0, 1, 1, 0, 0 } }, { "extends", KEYWORD_EXTENDS, { 0, 0, 0, 1, 1, 0, 0 } },
{ "extern", KEYWORD_EXTERN, { 1, 1, 1, 0, 1, 1, 1 } }, { "extern", KEYWORD_EXTERN, { 1, 1, 1, 0, 1, 1, 0 } },
{ "extern", KEYWORD_NAMESPACE, { 0, 0, 0, 0, 0, 0, 1 } }, /* hack to ignore extern */
{ "final", KEYWORD_FINAL, { 0, 0, 0, 1, 0, 0, 1 } }, { "final", KEYWORD_FINAL, { 0, 0, 0, 1, 0, 0, 1 } },
{ "finally", KEYWORD_FINALLY, { 0, 0, 0, 0, 0, 1, 1 } }, { "finally", KEYWORD_FINALLY, { 0, 0, 0, 0, 0, 1, 1 } },
{ "float", KEYWORD_FLOAT, { 1, 1, 1, 1, 0, 1, 1 } }, { "float", KEYWORD_FLOAT, { 1, 1, 1, 1, 0, 1, 1 } },
@ -470,6 +471,7 @@ static const keywordDesc KeywordTable [] = {
{ "unsigned", KEYWORD_UNSIGNED, { 1, 1, 1, 0, 0, 0, 1 } }, { "unsigned", KEYWORD_UNSIGNED, { 1, 1, 1, 0, 0, 0, 1 } },
{ "ushort", KEYWORD_USHORT, { 0, 0, 1, 0, 0, 1, 1 } }, { "ushort", KEYWORD_USHORT, { 0, 0, 1, 0, 0, 1, 1 } },
{ "using", KEYWORD_USING, { 0, 1, 1, 0, 0, 1, 0 } }, { "using", KEYWORD_USING, { 0, 1, 1, 0, 0, 1, 0 } },
{ "version", KEYWORD_NAMESPACE, { 0, 0, 0, 0, 0, 0, 1 } }, /* hack to ignore version */
{ "virtual", KEYWORD_VIRTUAL, { 0, 1, 1, 0, 1, 1, 0 } }, { "virtual", KEYWORD_VIRTUAL, { 0, 1, 1, 0, 1, 1, 0 } },
{ "void", KEYWORD_VOID, { 1, 1, 1, 1, 1, 1, 1 } }, { "void", KEYWORD_VOID, { 1, 1, 1, 1, 1, 1, 1 } },
{ "volatile", KEYWORD_VOLATILE, { 1, 1, 1, 1, 0, 0, 1 } }, { "volatile", KEYWORD_VOLATILE, { 1, 1, 1, 1, 0, 0, 1 } },