summaryrefslogtreecommitdiff
path: root/src/shared/cplusplus/Token.cpp
diff options
context:
space:
mode:
authorRoberto Raggi <roberto.raggi@nokia.com>2009-09-29 11:34:11 +0200
committerRoberto Raggi <roberto.raggi@nokia.com>2009-09-29 11:35:43 +0200
commite40cd82f8c12ca3d0a3b0e9c89737acf940def44 (patch)
treeb5a4688f2213166dde97d575d2afbd0d7935aa23 /src/shared/cplusplus/Token.cpp
parent1ce92c0ed6fad332c1ef7a1eb1d770fbd23932fb (diff)
downloadqt-creator-e40cd82f8c12ca3d0a3b0e9c89737acf940def44.tar.gz
Introduced T_CPP_COMMENT and T_CPP_DOXY_COMMENT to handle C++-style comments and improved CPPEditor::isInComment to handle the newly introduced tokens.
As side effect,this change should fix the regression we introduced in the "automagically" quote/brace insertion.
Diffstat (limited to 'src/shared/cplusplus/Token.cpp')
-rw-r--r--src/shared/cplusplus/Token.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/cplusplus/Token.cpp b/src/shared/cplusplus/Token.cpp
index 14a62f3db3..547849b1cc 100644
--- a/src/shared/cplusplus/Token.cpp
+++ b/src/shared/cplusplus/Token.cpp
@@ -54,6 +54,7 @@ CPLUSPLUS_BEGIN_NAMESPACE
static const char *token_names[] = {
(""), ("<error>"),
+ ("<C++ comment>"), ("<C++ doxy comment>"),
("<comment>"), ("<doxy comment>"),
("<identifier>"), ("<numeric literal>"), ("<char literal>"),