Merge pull request #12527 from lioncash/highlight

GekkoSyntaxHighlight: Fix FPR terminal highlighting being treated as GPRs
This commit is contained in:
JosJuice 2024-01-24 17:55:44 +01:00 committed by GitHub
commit dab03e4c08
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 9 deletions

View File

@ -52,7 +52,7 @@ public:
break;
case Terminal::FPR:
HighlightCurToken(HighlightFormat::GPR);
HighlightCurToken(HighlightFormat::FPR);
break;
case Terminal::SPR:
@ -221,17 +221,9 @@ void GekkoSyntaxHighlight::HighlightSubstr(int start, int len, HighlightFormat f
hl_format.setForeground(IMM_COLOR[m_theme_idx]);
break;
case HighlightFormat::GPR:
hl_format.setForeground(BUILTIN_COLOR[m_theme_idx]);
break;
case HighlightFormat::FPR:
hl_format.setForeground(BUILTIN_COLOR[m_theme_idx]);
break;
case HighlightFormat::SPR:
hl_format.setForeground(BUILTIN_COLOR[m_theme_idx]);
break;
case HighlightFormat::CRField:
hl_format.setForeground(BUILTIN_COLOR[m_theme_idx]);
break;
case HighlightFormat::CRFlag:
hl_format.setForeground(BUILTIN_COLOR[m_theme_idx]);
break;