mirror of
https://github.com/RGBCube/serenity
synced 2025-05-18 21:25:07 +00:00
LibGUI: Highlight various number literals
This commit is contained in:
parent
07e5b93c38
commit
8d54e4e012
3 changed files with 76 additions and 5 deletions
|
@ -21,7 +21,8 @@ static TextStyle style_for_token_type(CppToken::Type type)
|
|||
return { Color::from_rgb(0x092e64) };
|
||||
case CppToken::Type::DoubleQuotedString:
|
||||
case CppToken::Type::SingleQuotedString:
|
||||
case CppToken::Type::Number:
|
||||
case CppToken::Type::Integer:
|
||||
case CppToken::Type::Float:
|
||||
return { Color::from_rgb(0x800000) };
|
||||
case CppToken::Type::EscapeSequence:
|
||||
return { Color::from_rgb(0x800080), &Gfx::Font::default_bold_fixed_width_font() };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue