mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-24 19:21:52 +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
Notes:
sideshowbarker
2024-07-19 04:34:28 +09:00
Author: https://github.com/nico
Commit: 9ee1edae2a
Pull-request: https://github.com/SerenityOS/serenity/pull/2895
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