Skip to content

Commit

Permalink
Added support for new "attached" keyword.
Browse files Browse the repository at this point in the history
git-svn-id: https://ctags.svn.sourceforge.net/svnroot/ctags/trunk@748 c5d04d22-be80-434c-894e-aa346cc9e8e8
  • Loading branch information
Darren Hiebert committed Nov 6, 2009
1 parent 2f7a78c commit 0f7c6f6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions eiffel.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ typedef enum eException { ExceptionNone, ExceptionEOF } exception_t;
*/
typedef enum eKeywordId {
KEYWORD_NONE = -1,
KEYWORD_alias, KEYWORD_all, KEYWORD_and, KEYWORD_as, KEYWORD_assign,
KEYWORD_alias, KEYWORD_all, KEYWORD_and,
KEYWORD_as, KEYWORD_assign, KEYWORD_attached,
KEYWORD_check, KEYWORD_class, KEYWORD_convert, KEYWORD_create,
KEYWORD_creation, KEYWORD_Current,
KEYWORD_debug, KEYWORD_deferred, KEYWORD_detachable, KEYWORD_do,
Expand Down Expand Up @@ -155,6 +156,7 @@ static const keywordDesc EiffelKeywordTable [] = {
{ "and", KEYWORD_and },
{ "as", KEYWORD_as },
{ "assign", KEYWORD_assign },
{ "attached", KEYWORD_attached },
{ "check", KEYWORD_check },
{ "class", KEYWORD_class },
{ "convert", KEYWORD_convert },
Expand Down Expand Up @@ -872,7 +874,8 @@ static boolean parseType (tokenInfo *const token)
}
else
{
if (isKeyword (id, KEYWORD_detachable) ||
if (isKeyword (id, KEYWORD_attached) ||
isKeyword (id, KEYWORD_detachable) ||
isKeyword (id, KEYWORD_expanded))
{
copyToken (id, token);
Expand Down

0 comments on commit 0f7c6f6

Please sign in to comment.