Skip to content

Commit

Permalink
fix string color
Browse files Browse the repository at this point in the history
  • Loading branch information
zao111222333 committed Sep 25, 2024
1 parent c2526be commit a2a9875
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,6 @@ impl Highlighter for MyHelper {
| TokenKind::For
| TokenKind::If
| TokenKind::In
| TokenKind::FStringStart
| TokenKind::FStringMiddle
| TokenKind::FStringEnd
| TokenKind::Plus
| TokenKind::Minus
| TokenKind::Star
Expand Down Expand Up @@ -340,7 +337,10 @@ impl Highlighter for MyHelper {
| TokenKind::And
| TokenKind::Or
| TokenKind::Match => Style::new().fg_color(Some(KEY2_COLOR)),
TokenKind::String => Style::new().fg_color(Some(STRING_COLOR)),
TokenKind::String
| TokenKind::FStringStart
| TokenKind::FStringMiddle
| TokenKind::FStringEnd => Style::new().fg_color(Some(STRING_COLOR)),
TokenKind::Int
| TokenKind::Float
| TokenKind::Complex
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const KEY1_COLOR: Color = Color::Rgb(RgbColor(0x6C, 0xB6, 0xFF));
const KEY2_COLOR: Color = Color::Rgb(RgbColor(0xF4, 0x70, 0x67));
const SYMBOL_COLOR: Color = Color::Rgb(RgbColor(0xFF, 0x93, 0x8A));
const COMMENT_COLOR: Color = Color::Rgb(RgbColor(0x76, 0x83, 0x90));
const STRING_COLOR: Color = Color::Rgb(RgbColor(0x96, 0xD0, 0xFF));
const STRING_COLOR: Color = Color::Rgb(RgbColor(0xA5, 0xD6, 0xFF));
const UNKNOWN_COLOR: Color = Color::Rgb(RgbColor(0xFF, 0x00, 0x00));
const BRACKET_COLORS: [Color; 3] = [
Color::Rgb(RgbColor(0xFF, 0xFF, 0x00)),
Expand Down

0 comments on commit a2a9875

Please sign in to comment.