1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 14:05:09 +00:00

LibGUI: Syntax highlight string escape sequences

This commit is contained in:
Oriko 2020-03-10 22:26:11 +02:00 committed by Andreas Kling
parent bc10e0eeb2
commit d58cf1a05d
3 changed files with 84 additions and 0 deletions

View file

@ -23,6 +23,8 @@ static TextStyle style_for_token_type(CppToken::Type type)
case CppToken::Type::SingleQuotedString:
case CppToken::Type::Number:
return { Color::from_rgb(0x800000) };
case CppToken::Type::EscapeSequence:
return { Color::from_rgb(0x800080), &Gfx::Font::default_bold_fixed_width_font() };
case CppToken::Type::PreprocessorStatement:
return { Color::from_rgb(0x008080) };
case CppToken::Type::Comment: