Fixed a few typos and bugs in the ObjC++ support.

This commit is contained in:
Roberto Raggi
2009-07-13 12:05:29 +02:00
parent a446e06742
commit 1eefd16383
6 changed files with 12 additions and 6 deletions

View File

@@ -55,6 +55,11 @@ bool SimpleToken::isComment() const
return _kind == T_COMMENT || _kind == T_DOXY_COMMENT;
}
bool SimpleToken::isObjCAtKeyword() const
{
return _kind >= T_FIRST_LITERAL && _kind <= T_LAST_OBJC_AT_KEYWORD;
}
SimpleLexer::SimpleLexer()
: _lastState(0),
_skipComments(false),

View File

@@ -79,6 +79,7 @@ public:
bool isOperator() const;
bool isKeyword() const;
bool isComment() const;
bool isObjCAtKeyword() const;
public:
int _kind;