CppLexer: Support raw string literals

Handles prefixes and delimiters (`R"(text)", `u8R"f(text)f"`, ...).
This commit is contained in:
Nico Weber
2020-07-26 20:49:17 -04:00
committed by Andreas Kling
parent 4d783338c1
commit 9ee1edae2a
3 changed files with 24 additions and 0 deletions

View File

@@ -43,6 +43,7 @@ static TextStyle style_for_token_type(Gfx::Palette palette, CppToken::Type type)
return { palette.syntax_identifier() };
case CppToken::Type::DoubleQuotedString:
case CppToken::Type::SingleQuotedString:
case CppToken::Type::RawString:
return { palette.syntax_string() };
case CppToken::Type::Integer:
case CppToken::Type::Float: