summaryrefslogtreecommitdiff
path: root/src/libs/cplusplus/SimpleLexer.cpp
diff options
context:
space:
mode:
authorRoberto Raggi <roberto.raggi@nokia.com>2009-07-13 12:05:29 +0200
committerRoberto Raggi <roberto.raggi@nokia.com>2009-07-13 12:05:29 +0200
commit1eefd16383bd0e3adb167ccf4e80f6563096594f (patch)
treef60e7a4a47e6f9ad1f3efcd9dfc0760be6b33726 /src/libs/cplusplus/SimpleLexer.cpp
parenta446e0674295dc437c1663875ce1d785c7c48308 (diff)
downloadqt-creator-1eefd16383bd0e3adb167ccf4e80f6563096594f.tar.gz
Fixed a few typos and bugs in the ObjC++ support.
Diffstat (limited to 'src/libs/cplusplus/SimpleLexer.cpp')
-rw-r--r--src/libs/cplusplus/SimpleLexer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libs/cplusplus/SimpleLexer.cpp b/src/libs/cplusplus/SimpleLexer.cpp
index f131c9de98..93b93ec73c 100644
--- a/src/libs/cplusplus/SimpleLexer.cpp
+++ b/src/libs/cplusplus/SimpleLexer.cpp
@@ -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),