mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 10:01:13 +09:00
LibGUI: Syntax highlight string escape sequences
This commit is contained in:
parent
bc10e0eeb2
commit
d58cf1a05d
Notes:
sideshowbarker
2024-07-19 08:46:47 +09:00
Author: https://github.com/oriko1010
Commit: d58cf1a05d
Pull-request: https://github.com/SerenityOS/serenity/pull/1411
3 changed files with 84 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue