aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/3rdparty/cplusplus/Token.cpp
diff options
context:
space:
mode:
authorLeandro Melo <leandro.melo@nokia.com>2012-08-16 21:17:41 +0200
committerLeandro Melo <leandro.melo@nokia.com>2012-08-23 14:35:02 +0200
commite148d030f59ae1e88c68a1843d75cd5cac444439 (patch)
tree7c8c5b207b7ff4bc3a3b008bad66ff332bfd39aa /src/libs/3rdparty/cplusplus/Token.cpp
parent15a67c41c3c9640fd935e6c76818157afaf5a487 (diff)
C++: Introduce C++11 raw string literals
Although they are now supported by the lexer and parser, it is worth to remind that we still need to address an issue concerning the highlight of multiline literals (which with the advent of the new raw strings will become more common). Task-number: QTCREATORBUG-6722 Change-Id: I137337a9ac0152a1f8b9faded0b960c6fe3dd38a Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Diffstat (limited to 'src/libs/3rdparty/cplusplus/Token.cpp')
-rw-r--r--src/libs/3rdparty/cplusplus/Token.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libs/3rdparty/cplusplus/Token.cpp b/src/libs/3rdparty/cplusplus/Token.cpp
index 9021002483..dcc18601c2 100644
--- a/src/libs/3rdparty/cplusplus/Token.cpp
+++ b/src/libs/3rdparty/cplusplus/Token.cpp
@@ -35,6 +35,8 @@ static const char *token_names[] = {
("<char literal>"), ("<wide char literal>"), ("<utf16 char literal>"), ("<utf32 char literal>"),
("<string literal>"), ("<wide string literal>"), ("<utf8 string literal>"),
("<utf16 string literal>"), ("<utf32 string literal>"),
+ ("<raw string literal>"), ("<raw wide string literal>"), ("<raw utf8 string literal>"),
+ ("<raw utf16 string literal>"), ("<raw utf32 string literal>"),
("<@string literal>"), ("<angle string literal>"),
("&"), ("&&"), ("&="), ("->"), ("->*"), ("^"), ("^="), (":"), ("::"),
@@ -105,6 +107,11 @@ const char *Token::spell() const
case T_UTF8_STRING_LITERAL:
case T_UTF16_STRING_LITERAL:
case T_UTF32_STRING_LITERAL:
+ case T_RAW_STRING_LITERAL:
+ case T_RAW_WIDE_STRING_LITERAL:
+ case T_RAW_UTF8_STRING_LITERAL:
+ case T_RAW_UTF16_STRING_LITERAL:
+ case T_RAW_UTF32_STRING_LITERAL:
case T_AT_STRING_LITERAL:
case T_ANGLE_STRING_LITERAL:
return literal->chars();