Initial support for doxygen comments.

This commit is contained in:
Roberto Raggi
2009-02-20 11:52:27 +01:00
parent 4a259547fc
commit 4c5ff047f0
13 changed files with 1804 additions and 37 deletions

View File

@@ -54,6 +54,11 @@ bool SimpleToken::isKeyword() const
return _kind >= T_FIRST_KEYWORD && _kind < T_FIRST_QT_KEYWORD;
}
bool SimpleToken::isComment() const
{
return _kind == T_COMMENT || _kind == T_DOXY_COMMENT;
}
SimpleLexer::SimpleLexer()
: _lastState(0),
_skipComments(false),

View File

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