mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 23:25:06 +00:00
CppLexer: Support raw string literals
Handles prefixes and delimiters (`R"(text)", `u8R"f(text)f"`, ...).
This commit is contained in:
parent
4d783338c1
commit
9ee1edae2a
3 changed files with 24 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue